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

24 lines
552 B
Ruby
Raw Normal View History

2011-03-06 05:21:52 +00:00
class DeviseCreateUsers < ActiveRecord::Migration
def self.up
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
def self.down
drop_table :users
end
end