Commit ed15fe040dde13ee7c130b7e299a861a6b33c216
Committed by
Rodrigo Souto
1 parent
ef654bfa
Exists in
staging
and in
41 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 @@ |
| 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 | ... | ... |