Sha256: 29952b2686dda70802e1f250cc697c9726c0ac88e824c843c3b33e3912813743

Contents?: true

Size: 489 Bytes

Versions: 94

Compression:

Stored size: 489 Bytes

Contents

class SorceryCore < ActiveRecord::Migration[5.1]
  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.timestamps null: false
    end

    add_index :users, :email
    add_index :users, :remember_me_token
    add_index :users, :admin
  end
end

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
station-0.1.5 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.1.4 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.1.3 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.1.2 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.1.1 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.1.0 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.0.145 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.0.144 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.0.143 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.0.142 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.0.141 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.0.140 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.0.139 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.0.138 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.0.137 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.0.136 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.0.135 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.0.134 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.0.133 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb
station-0.0.132 lib/nexmo_developer/db/migrate/20170901093402_sorcery_core.rb