mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 14:26:04 +01:00
11 lines
233 B
Ruby
11 lines
233 B
Ruby
|
|
class AddTokensUpdatedOn < ActiveRecord::Migration
|
||
|
|
def self.up
|
||
|
|
add_column :tokens, :updated_on, :timestamp
|
||
|
|
Token.update_all("updated_on = created_on")
|
||
|
|
end
|
||
|
|
|
||
|
|
def self.down
|
||
|
|
remove_column :tokens, :updated_on
|
||
|
|
end
|
||
|
|
end
|