To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / db / migrate / 065_add_settings_updated_on.rb @ 912:5e80956cc792

History | View | Annotate | Download (248 Bytes)

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