1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/db/migrate/20181206205529_create_membership_pool_accounts.rb
2019-04-28 18:34:46 +05:00

16 lines
497 B
Ruby

# frozen_string_literal: true
class CreateMembershipPoolAccounts < ActiveRecord::Migration[5.2]
def change
create_table :membership_pool_accounts do |t|
t.timestamps null: false
t.references :membership_pool, null: false, foreign_key: true
t.references :account, null: false, foreign_key: true
t.index %i[membership_pool_id account_id],
name: 'index_membership_pool_accounts_on_pool_and_account',
unique: true
end
end
end