Sha256: c4d99c7a0f62e417a5c1e06ac95ed614dcb5c8207783a965e328421da76bf780

Contents?: true

Size: 482 Bytes

Versions: 6

Compression:

Stored size: 482 Bytes

Contents

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

      t.timestamps
    end

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

      t.timestamps
    end
  end

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

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
sorcery-0.9.1 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.9.0 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
cbsorcery-0.8.6 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
cb-sorcery-0.8.6 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.8.6 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
sorcery-0.8.5 spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb