adopt-a-hydrant/db/migrate/00000000000001_devise_creat...

20 lines
506 B
Ruby
Raw Normal View History

2011-03-06 05:21:52 +00:00
class DeviseCreateUsers < ActiveRecord::Migration
2011-05-22 14:35:46 +00:00
def change
2011-03-06 05:21:52 +00:00
create_table :users do |t|
t.timestamps
t.string :name, :null => false
t.string :organization
t.string :email, :null => false
2011-03-07 02:40:29 +00:00
t.string :voice_number
t.string :sms_number
2011-03-06 05:21:52 +00:00
t.database_authenticatable :null => false
t.recoverable
t.rememberable
t.trackable
end
add_index :users, :email, :unique => true
add_index :users, :reset_password_token, :unique => true
end
end