Mercurial > hg > soundsoftware-site
comparison db/migrate/.svn/text-base/065_add_settings_updated_on.rb.svn-base @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:513646585e45 |
---|---|
1 class AddSettingsUpdatedOn < ActiveRecord::Migration | |
2 def self.up | |
3 add_column :settings, :updated_on, :timestamp | |
4 # set updated_on | |
5 Setting.find(:all).each(&:save) | |
6 end | |
7 | |
8 def self.down | |
9 remove_column :settings, :updated_on | |
10 end | |
11 end |