Sha256: 18ed84f1146070bd2e835887e0251ed764729a41c546914cf46e68eec8173c47

Contents?: true

Size: 294 Bytes

Versions: 4

Compression:

Stored size: 294 Bytes

Contents

class CreateAuthentications < ActiveRecord::Migration
  def change
    create_table :authentications do |t|
      t.string :provider
      t.string :uid
      t.belongs_to :user, index: true

      t.timestamps
    end
    add_index :authentications, [:provider, :uid], unique: :true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
goma-0.0.1.rc3 test/rails_app/db/migrate/20140524062920_create_authentications.rb
goma-0.0.1.rc2 test/rails_app/db/migrate/20140515111010_create_authentications.rb
goma-0.0.1.rc1 test/rails_app/db/migrate/20140515111010_create_authentications.rb
goma-0.0.1.gamma test/rails_app/db/migrate/20140512081309_create_authentications.rb