Sha256: 390edeaafcec7d482e764fcc273232d49da7af1970250b9bdfea5589ec27e4ed

Contents?: true

Size: 1.03 KB

Versions: 25

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

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

25 entries across 25 versions & 1 rubygems

Version Path
graphql_devise-1.4.0 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-1.3.0 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-1.2.0 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-1.1.1 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-1.1.0 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-1.0.1 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-1.0.0 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-0.18.2 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-0.18.1 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-0.18.0 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-0.17.1 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-0.17.0 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-0.16.0 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-0.15.0 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-0.14.3 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-0.14.2 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-0.14.1 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-0.14.0 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-0.13.6 spec/dummy/db/migrate/20190916012505_create_admins.rb
graphql_devise-0.13.5 spec/dummy/db/migrate/20190916012505_create_admins.rb