Sha256: 36206ffc3d813c017a8e2f7f8c6184b0181df85af5eb254629394ad8d63b9878

Contents?: true

Size: 285 Bytes

Versions: 21

Compression:

Stored size: 285 Bytes

Contents

class CreateGroupPeople < ActiveRecord::Migration
  def change
    create_table :group_people do |t|
      t.references :group
      t.references :person
      t.timestamps null: false

      t.index [:group_id, :person_id], unique: true, name: 'group_people_lookup'
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
kadmin-0.6.8 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.6.7 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.6.6 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.6.5 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.6.4 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.6.3 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.6.1 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.5.7 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.5.6 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.4.2 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.4.1 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.4.0 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.3.1 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.3.0 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.2.8 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.2.7 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.2.6 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.2.3 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.2.2 test/dummy/db/migrate/20161006134746_create_group_people.rb
kadmin-0.1.7 test/dummy/db/migrate/20161006134746_create_group_people.rb