Sha256: a5bf6d7a2432660bdfab22a7df49cd303651af90f16f55458dc33533ac94c757

Contents?: true

Size: 599 Bytes

Versions: 2

Compression:

Stored size: 599 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def change
    create_table :users do |t|
      t.string :email,           null: false, index: { unique: true }
      t.string :password_digest, null: false

      t.boolean :verified, null: false, default: false
      <%- if two_factor? %>
      t.string :otp_secret
      <%- end -%>
      <%- if webauthn? %>
      t.string :webauthn_id
      <%- end -%>
      <%- if omniauthable? %>
      t.string :provider
      t.string :uid
      <%- end -%>

      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
authentication-zero-2.16.23 lib/generators/authentication/templates/migrations/create_users_migration.rb.tt
authentication-zero-2.16.22 lib/generators/authentication/templates/migrations/create_users_migration.rb.tt