blob: 7b94a3a95e9b4ee8a506e03278e175ce9c119cb2 (
plain)
1
2
3
4
5
6
7
8
9
10
|
class AddTokensUpdatedOn < ActiveRecord::Migration[4.2]
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
|