Sha256: acc1a286fa8194987d891bed3598ecc75ef3d0359a1e1f3970668b05fb7179ba

Contents?: true

Size: 406 Bytes

Versions: 12

Compression:

Stored size: 406 Bytes

Contents

class CreateOpenStaxAccountsGroupMembers < ActiveRecord::Migration
  def change
    create_table :openstax_accounts_group_members do |t|
      t.references :group, null: false
      t.references :user, null: false

      t.timestamps null: false
    end

    add_index :openstax_accounts_group_members, [:group_id, :user_id], unique: true
    add_index :openstax_accounts_group_members, :user_id
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
openstax_accounts-7.13.1 db/migrate/2_create_openstax_accounts_group_members.rb
openstax_accounts-7.13.0 db/migrate/2_create_openstax_accounts_group_members.rb
openstax_accounts-7.12.0 db/migrate/2_create_openstax_accounts_group_members.rb
openstax_accounts-7.11.0 db/migrate/2_create_openstax_accounts_group_members.rb
openstax_accounts-7.10.0 db/migrate/2_create_openstax_accounts_group_members.rb
openstax_accounts-7.9.0 db/migrate/2_create_openstax_accounts_group_members.rb
openstax_accounts-7.8.0 db/migrate/2_create_openstax_accounts_group_members.rb
openstax_accounts-7.7.0 db/migrate/2_create_openstax_accounts_group_members.rb
openstax_accounts-7.6.0 db/migrate/2_create_openstax_accounts_group_members.rb
openstax_accounts-7.5.0 db/migrate/2_create_openstax_accounts_group_members.rb
openstax_accounts-7.4.0 db/migrate/2_create_openstax_accounts_group_members.rb
openstax_accounts-7.3.0 db/migrate/2_create_openstax_accounts_group_members.rb