Sha256: b9b185054da73c0380f01acc0935bc5b4ffa891a3e4286972bce48d1983723f3

Contents?: true

Size: 538 Bytes

Versions: 17

Compression:

Stored size: 538 Bytes

Contents

class CreateAuthenticationsAndUserProviders < ActiveRecord::CompatibleLegacyMigration.migration_class
  def self.up
    create_table :authentications do |t|
      t.integer :user_id, null: false
      t.string :provider, :uid, null: false

      t.timestamps null: false
    end

    create_table :user_providers do |t|
      t.integer :user_id, null: false
      t.string :provider, :uid, null: false

      t.timestamps null: false
    end
  end

  def self.down
    drop_table :authentications
    drop_table :user_providers
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
sorcery-0.17.0 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.16.5 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.16.4 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.16.3 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.16.2 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.16.1 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.15.1 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.16.0 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.15.0 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.14.0 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.13.0 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.12.0 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.11.0 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.10.3 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.10.2 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.10.1 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.10.0 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb