mirror of
https://github.com/redmine/redmine.git
synced 2024-07-29 08:17:16 +02:00
12 lines
248 B
Ruby
12 lines
248 B
Ruby
![]() |
class AddSettingsUpdatedOn < ActiveRecord::Migration
|
||
|
def self.up
|
||
|
add_column :settings, :updated_on, :timestamp
|
||
|
# set updated_on
|
||
|
Setting.find(:all).each(&:save)
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
remove_column :settings, :updated_on
|
||
|
end
|
||
|
end
|