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/20181206194527_create_membership_pool_apps.rb

16 lines
490 B
Ruby

# frozen_string_literal: true
class CreateMembershipPoolApps < ActiveRecord::Migration[5.2]
def change
create_table :membership_pool_apps do |t|
t.timestamps null: false
t.references :membership_pool, null: false, foreign_key: true
t.references :membership_app, null: false, foreign_key: true
t.index %i[membership_app_id membership_pool_id],
name: 'index_membership_pool_apps_on_app_and_pool',
unique: true
end
end
end