Mercurial > hg > soundsoftware-site
comparison db/migrate/065_add_settings_updated_on.rb @ 1298:4f746d8966dd redmine_2.3_integration
Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:28:30 +0100 |
parents | 622f24f53b42 |
children |
comparison
equal
deleted
inserted
replaced
1297:0a574315af3e | 1298:4f746d8966dd |
---|---|
1 class AddSettingsUpdatedOn < ActiveRecord::Migration | 1 class AddSettingsUpdatedOn < ActiveRecord::Migration |
2 def self.up | 2 def self.up |
3 add_column :settings, :updated_on, :timestamp | 3 add_column :settings, :updated_on, :timestamp |
4 # set updated_on | 4 # set updated_on |
5 Setting.find(:all).each(&:save) | 5 Setting.all.each(&:save) |
6 end | 6 end |
7 | 7 |
8 def self.down | 8 def self.down |
9 remove_column :settings, :updated_on | 9 remove_column :settings, :updated_on |
10 end | 10 end |