Sha256: a0d876642ad960bd90ba54876e18235fa8baf7b1b383d1c215e349eeaa26001f

Contents?: true

Size: 1.2 KB

Versions: 15

Compression:

Stored size: 1.2 KB

Contents

# frozen_string_literal: true

class CreateSchemaUsers < ActiveRecord::Migration[6.0]
  def change
    create_table :schema_users 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

      # Trackable
      t.datetime :current_sign_in_at
      t.datetime :last_sign_in_at
      t.string   :last_sign_in_ip
      t.string   :current_sign_in_ip
      t.integer  :sign_in_count

      ## User Info
      t.string :name
      t.string :email

      ## Tokens
      t.text :tokens

      t.timestamps
    end

    add_index :schema_users, :email,                unique: true
    add_index :schema_users, [:uid, :provider],     unique: true
    add_index :schema_users, :reset_password_token, unique: true
    add_index :schema_users, :confirmation_token,   unique: true
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
graphql_devise-1.4.0 spec/dummy/db/migrate/20200623003142_create_schema_users.rb
graphql_devise-1.3.0 spec/dummy/db/migrate/20200623003142_create_schema_users.rb
graphql_devise-1.2.0 spec/dummy/db/migrate/20200623003142_create_schema_users.rb
graphql_devise-1.1.1 spec/dummy/db/migrate/20200623003142_create_schema_users.rb
graphql_devise-1.1.0 spec/dummy/db/migrate/20200623003142_create_schema_users.rb
graphql_devise-1.0.1 spec/dummy/db/migrate/20200623003142_create_schema_users.rb
graphql_devise-1.0.0 spec/dummy/db/migrate/20200623003142_create_schema_users.rb
graphql_devise-0.18.2 spec/dummy/db/migrate/20200623003142_create_schema_users.rb
graphql_devise-0.18.1 spec/dummy/db/migrate/20200623003142_create_schema_users.rb
graphql_devise-0.18.0 spec/dummy/db/migrate/20200623003142_create_schema_users.rb
graphql_devise-0.17.1 spec/dummy/db/migrate/20200623003142_create_schema_users.rb
graphql_devise-0.17.0 spec/dummy/db/migrate/20200623003142_create_schema_users.rb
graphql_devise-0.16.0 spec/dummy/db/migrate/20200623003142_create_schema_users.rb
graphql_devise-0.15.0 spec/dummy/db/migrate/20200623003142_create_schema_users.rb
graphql_devise-0.14.3 spec/dummy/db/migrate/20200623003142_create_schema_users.rb