Commit c4728894995f8188e4ee211533452f49757f5b29
Committed by
Rodrigo Souto
1 parent
339fa730
Exists in
master
and in
29 other branches
adding private token information to users
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
db/migrate/20140407013817_add_private_token_info_to_users.rb
0 → 100644
| @@ -0,0 +1,11 @@ | @@ -0,0 +1,11 @@ | ||
| 1 | +class AddPrivateTokenInfoToUsers < ActiveRecord::Migration | ||
| 2 | + def self.up | ||
| 3 | + add_column :users, :private_token | ||
| 4 | + add_column :users, :private_token_generated_at, :datetime | ||
| 5 | + end | ||
| 6 | + | ||
| 7 | + def self.down | ||
| 8 | + remove_column :users, :private_token | ||
| 9 | + remove_column :users, :private_token_generated_at | ||
| 10 | + end | ||
| 11 | +end |