1
0
Fork 0
This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/db/migrate/20181130075817_create_passp...

14 lines
381 B
Ruby

# frozen_string_literal: true
class CreatePassportConfirmations < ActiveRecord::Migration[5.2]
def change
create_table :passport_confirmations do |t|
t.timestamps null: false
t.references :passport, null: false, foreign_key: true
t.references :user, null: false, foreign_key: true
t.index %i[passport_id user_id], unique: true
end
end
end