Commit b0658885597bbf7ab211677b8bd1a2ac563bead0
1 parent
00cc3a0f
Exists in
theme-brasil-digital-from-staging
and in
9 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 | ... | ... |