mirror of
https://github.com/redmine/redmine.git
synced 2024-08-27 17:54:48 +02:00
![Jean-Philippe Lang](/assets/img/avatar_default.png)
Once the values are cached, only one database query is done at each user request (to check if the cache is still valid). git-svn-id: http://redmine.rubyforge.org/svn/trunk@685 e93f8b46-1217-0410-a6f0-8f06a7374b81
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
|