Devise migratable.

This commit is contained in:
José Valim
2009-10-21 00:09:26 -02:00
parent b3f68ab287
commit f00d29c97a
5 changed files with 69 additions and 27 deletions

View File

@@ -16,15 +16,12 @@ ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":me
ActiveRecord::Schema.define(:version => 1) do
[:users, :admins].each do |table|
create_table table do |t|
t.string :email, :null => false
t.string :encrypted_password, :null => false
t.string :password_salt, :null => false
t.authenticable
if table == :users
t.string :confirmation_token
t.datetime :confirmation_sent_at
t.datetime :confirmed_at
t.string :reset_password_token
t.string :remember_token
t.confirmable
t.recoverable
t.rememberable
end
t.timestamps