Class: SorceryCore
- Inherits:
-
Object
- Object
- SorceryCore
- Defined in:
- lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb', line 2 def change create_table :users, id: :uuid do |t| t.string :email, unique: true, null: false t.boolean :admin, null: false, default: false t.string :crypted_password t.string :salt t.string :remember_me_token t.datetime :remember_me_token_expires_at t. null: false end add_index :users, :email add_index :users, :remember_me_token add_index :users, :admin end |