Sha256: d539d87959c05b1eeaa378a2ffa2ef3097be81c96b9ae62f2600ef5f083e04d2
Contents?: true
Size: 838 Bytes
Versions: 10
Compression:
Stored size: 838 Bytes
Contents
# frozen_string_literal: true class ShieldifyCreateUsers < ActiveRecord::Migration<%= migration_version %> def change create_table :users do |t| ## Email registerable t.string :email, default: "" t.string :password_digest, default: "" ## Email confirmable t.string :unconfirmed_email t.string :email_confirmation_token t.string :email_confirmation_token_generated_at ## Email password recoverable t.string :reset_email_password_token t.string :reset_email_password_token_generated_at t.timestamps null: false end create_table :jwt_sessions do |t| t.string :jti, null: false t.references :user, null: false, foreign_key: true t.timestamps end add_index :users, :email add_index :jwt_sessions, :jti, unique: true end end
Version data entries
10 entries across 10 versions & 1 rubygems