Commit a26fc9f5fec4e61c18b252a574876f82f2b9c915
1 parent
b356e34d
Exists in
master
and in
1 other branch
clearance create users migration should use new version that includes timestamps
Showing
1 changed file
with
5 additions
and
3 deletions
Show diff stats
db/migrate/20090701195337_clearance_create_users.rb
@@ -7,14 +7,16 @@ class ClearanceCreateUsers < ActiveRecord::Migration | @@ -7,14 +7,16 @@ class ClearanceCreateUsers < ActiveRecord::Migration | ||
7 | t.string :token, :limit => 128 | 7 | t.string :token, :limit => 128 |
8 | t.datetime :token_expires_at | 8 | t.datetime :token_expires_at |
9 | t.boolean :email_confirmed, :default => false, :null => false | 9 | t.boolean :email_confirmed, :default => false, :null => false |
10 | + t.timestamps | ||
10 | end | 11 | end |
11 | 12 | ||
12 | add_index :users, [:id, :token] | 13 | add_index :users, [:id, :token] |
13 | add_index :users, :email | 14 | add_index :users, :email |
14 | - add_index :users, :token | 15 | + add_index :users, :token |
15 | end | 16 | end |
16 | - | 17 | + |
17 | def self.down | 18 | def self.down |
18 | - drop_table :users | 19 | + drop_table :users |
19 | end | 20 | end |
20 | end | 21 | end |
22 | + |