20150408231524_add_settings_to_comments.rb 224 Bytes
class AddSettingsToComments < ActiveRecord::Migration
  def self.up
    add_column :comments, :setting, :text unless column_exists?(:comments, :setting)
  end

  def self.down
    remove_column :comments, :setting
  end
end