You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20151024082034_add_tokens_updated_on.rb 238B

12345678910
  1. class AddTokensUpdatedOn < ActiveRecord::Migration[4.2]
  2. def self.up
  3. add_column :tokens, :updated_on, :timestamp
  4. Token.update_all("updated_on = created_on")
  5. end
  6. def self.down
  7. remove_column :tokens, :updated_on
  8. end
  9. end