Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (18 sloc) 541 Bytes
class ClearanceCreateUsers < ActiveRecord::Migration
def self.up
create_table(:users) do |t|
t.string :email
t.string :encrypted_password, :limit => 128
t.string :salt, :limit => 128
t.string :token, :limit => 128
t.datetime :token_expires_at
t.boolean :email_confirmed, :default => false, :null => false
end
add_index :users, [:id, :token]
add_index :users, :email
add_index :users, :token
end
def self.down
drop_table :users
end
end
Something went wrong with that request. Please try again.