Sha256: fc740ba72f25245380959f9ae7874c847c040b9b4d25e0ead1926f7d715b2d17
Contents?: true
Size: 1019 Bytes
Versions: 23
Compression:
Stored size: 1019 Bytes
Contents
class CreateAdmins < ActiveRecord::Migration[5.2] def change create_table :admins do |t| ## Required t.string :provider, null: false, default: 'email' t.string :uid, null: false, default: '' ## Database authenticatable t.string :encrypted_password, null: false, default: '' ## Recoverable t.string :reset_password_token t.datetime :reset_password_sent_at t.boolean :allow_password_change, default: false ## Confirmable t.string :confirmation_token t.datetime :confirmed_at t.datetime :confirmation_sent_at t.string :unconfirmed_email # Only if using reconfirmable ## User Info t.string :email ## Tokens t.text :tokens t.timestamps end add_index :admins, :email, unique: true add_index :admins, [:uid, :provider], unique: true add_index :admins, :reset_password_token, unique: true add_index :admins, :confirmation_token, unique: true end end
Version data entries
23 entries across 23 versions & 1 rubygems