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