Sha256: 9b606e53dc5779cca09d3ddae9d08b9835852d29ab2d3bd4e333e76e75e11f39

Contents?: true

Size: 407 Bytes

Versions: 22

Compression:

Stored size: 407 Bytes

Contents

class CreateOpenStaxAccountsGroupOwners < ActiveRecord::Migration[4.2]
  def change
    create_table :openstax_accounts_group_owners do |t|
      t.references :group, null: false
      t.references :user, null: false

      t.timestamps null: false
    end

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
openstax_accounts-9.9.0 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.8.1 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.8.0 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.7.0 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.6.1 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.6.0 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.5.1 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.5.0 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.4.0 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.3.0 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.0.5 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.0.4 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.2.0 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.0.3 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.1.0 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.0.2 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.0.1 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-9.0.0 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-8.1.1 db/migrate/3_create_openstax_accounts_group_owners.rb
openstax_accounts-8.1.0 db/migrate/3_create_openstax_accounts_group_owners.rb