Sha256: ac4e5e4cb978f2108654e9a06d654b1dfa2083a20b36ea3bdd5b5676cb2f391b
Contents?: true
Size: 645 Bytes
Versions: 40
Compression:
Stored size: 645 Bytes
Contents
class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>] def change create_table :users do |t| t.string :email, null: false t.string :password_digest, null: false t.boolean :verified, null: false, default: false <%- if two_factor? %> t.string :otp_secret <%- end -%> <%- if omniauthable? %> t.string :provider t.string :uid <%- end -%> t.timestamps end add_index :users, :email, unique: true <%- if omniauthable? -%> add_index :users, [:provider, :uid], unique: true <%- end -%> end end
Version data entries
40 entries across 40 versions & 1 rubygems