Sha256: 70b265cce6becfec16b4c2441c954bbf87f6bc703bd17ed12ab1b293918690ac

Contents?: true

Size: 434 Bytes

Versions: 12

Compression:

Stored size: 434 Bytes

Contents

class CreateOpenStaxAccountsGroupNestings < ActiveRecord::Migration
  def change
    create_table :openstax_accounts_group_nestings do |t|
      t.references :member_group, null: false
      t.references :container_group, null: false

      t.timestamps null: false
    end

    add_index :openstax_accounts_group_nestings, :member_group_id, unique: true
    add_index :openstax_accounts_group_nestings, :container_group_id
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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