Sha256: 223d04063a57b29ce2928bb69952e7963f60156f0245eb6e9137854c7095b05f

Contents?: true

Size: 803 Bytes

Versions: 18

Compression:

Stored size: 803 Bytes

Contents

# frozen_string_literal: true

class CreateG5AuthenticatableUsers < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table(:g5_authenticatable_users) do |t|
      # G5 authenticatable
      t.string :email,              null: false, default: ''
      t.string :provider,           null: false, default: 'g5'
      t.string :uid,                null: false
      t.string :g5_access_token

      # Trackable
      t.integer  :sign_in_count, default: 0, null: false
      t.datetime :current_sign_in_at
      t.datetime :last_sign_in_at
      t.string   :current_sign_in_ip
      t.string   :last_sign_in_ip

      t.timestamps
    end

    add_index :g5_authenticatable_users, :email, unique: true
    add_index :g5_authenticatable_users, [:provider, :uid], unique: true
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
g5_authenticatable-1.1.4 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.1.4.rc.3 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.1.4.rc.2 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.1.4.rc.1 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.1.2 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.1.2.pre.1 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.1.2.rc.5 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.1.2.rc.4 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.1.2.rc.3 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.1.2.rc.2 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.1.2.rc.1 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.1.1 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.1.0 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.0.0 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.0.0.pre.4 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.0.0.pre.3 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.0.0.pre.2 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-1.0.0.pre.1 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb