Commit 6ca0662d5211904ff395d330f05e70571386ccb7
1 parent
f001e6d4
Exists in
master
and in
1 other branch
update clearance migration
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
db/migrate/20090701195337_clearance_create_users.rb
... | ... | @@ -4,15 +4,15 @@ class ClearanceCreateUsers < ActiveRecord::Migration |
4 | 4 | t.string :email |
5 | 5 | t.string :encrypted_password, :limit => 128 |
6 | 6 | t.string :salt, :limit => 128 |
7 | - t.string :token, :limit => 128 | |
8 | - t.datetime :token_expires_at | |
7 | + t.string :confirmation_token, :limit => 128 | |
8 | + t.string :remember_token, :limit => 128 | |
9 | 9 | t.boolean :email_confirmed, :default => false, :null => false |
10 | 10 | t.timestamps |
11 | 11 | end |
12 | 12 | |
13 | - add_index :users, [:id, :token] | |
13 | + add_index :users, [:id, :confirmation_token] | |
14 | 14 | add_index :users, :email |
15 | - add_index :users, :token | |
15 | + add_index :users, :remember_token | |
16 | 16 | end |
17 | 17 | |
18 | 18 | def self.down | ... | ... |