cirandas.net

ref: master

db/migrate/20150223180807_add_private_token_info_to_users.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
class AddPrivateTokenInfoToUsers < ActiveRecord::Migration
  def self.up
    add_column :users, :private_token, :string
    add_column :users, :private_token_generated_at, :datetime
  end

  def self.down
    remove_column :users, :private_token
    remove_column :users, :private_token_generated_at
  end
end