class <%= migration_name %> < ActiveRecord::Migration
  def self.up
    add_column :<%= class_name.underscore.camelize.tableize %>, :publishing_enabled, :boolean
    add_column :<%= class_name.underscore.camelize.tableize %>, :publish_from, :datetime
    add_column :<%= class_name.underscore.camelize.tableize %>, :publish_until, :datetime
  end

  def self.down
    remove_column :<%= class_name.underscore.camelize.tableize %>, :publishing_enabled
    remove_column :<%= class_name.underscore.camelize.tableize %>, :publish_from
    remove_column :<%= class_name.underscore.camelize.tableize %>, :publish_until
  end
end

class <%= migration_name %> < ActiveRecord::Migration
  def self.up
    add_column :<%= class_name.underscore.camelize.tableize %>, :publishing_enabled, :boolean
    add_column :<%= class_name.underscore.camelize.tableize %>, :published_at, :datetime
    add_column :<%= class_name.underscore.camelize.tableize %>, :published_until, :datetime
  end

  def self.down
    remove_column :<%= class_name.underscore.camelize.tableize %>, :publishing_enabled
    remove_column :<%= class_name.underscore.camelize.tableize %>, :published_at
    remove_column :<%= class_name.underscore.camelize.tableize %>, :published_until
  end
end

Rename publishing logic fields to published_at and published_until
Rename publishing logic fields to published_at and published_until
