You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

065_add_settings_updated_on.rb 246B

1234567891011
  1. class AddSettingsUpdatedOn < ActiveRecord::Migration[4.2]
  2. def self.up
  3. add_column :settings, :updated_on, :timestamp
  4. # set updated_on
  5. Setting.all.each(&:save)
  6. end
  7. def self.down
  8. remove_column :settings, :updated_on
  9. end
  10. end