Sha256: 0674ee091360ed38228f6e369a05632aef2827bd175db864a176f673d188704a

Contents?: true

Size: 748 Bytes

Versions: 38

Compression:

Stored size: 748 Bytes

Contents

class CreateG5AuthenticatableUsers < ActiveRecord::Migration
  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

38 entries across 19 versions & 1 rubygems

Version Path
g5_authenticatable-0.9.1.pre.2 spec/dummy/db/migrate/20140206070137_create_g5_authenticatable_users.rb
g5_authenticatable-0.9.1.pre.2 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-0.8.1.pre spec/dummy/db/migrate/20140206070137_create_g5_authenticatable_users.rb
g5_authenticatable-0.8.1.pre lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-0.8.0 spec/dummy/db/migrate/20140206070137_create_g5_authenticatable_users.rb
g5_authenticatable-0.8.0 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-0.8.0.beta1 spec/dummy/db/migrate/20140206070137_create_g5_authenticatable_users.rb
g5_authenticatable-0.8.0.beta1 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-0.7.5 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-0.7.5 spec/dummy/db/migrate/20140206070137_create_g5_authenticatable_users.rb
g5_authenticatable-0.7.5.beta spec/dummy/db/migrate/20140206070137_create_g5_authenticatable_users.rb
g5_authenticatable-0.7.5.beta lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-0.7.4 spec/dummy/db/migrate/20140206070137_create_g5_authenticatable_users.rb
g5_authenticatable-0.7.4 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-0.7.4.beta.1 spec/dummy/db/migrate/20140206070137_create_g5_authenticatable_users.rb
g5_authenticatable-0.7.4.beta.1 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-0.7.3 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb
g5_authenticatable-0.7.3 spec/dummy/db/migrate/20140206070137_create_g5_authenticatable_users.rb
g5_authenticatable-0.7.2 spec/dummy/db/migrate/20140206070137_create_g5_authenticatable_users.rb
g5_authenticatable-0.7.2 lib/generators/g5_authenticatable/install/templates/migrate/create_g5_authenticatable_users.rb