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/20181130075817_create_passport_confirmations.rb

14 lines
381 B
Ruby
Raw Normal View History

2018-11-30 03:13:54 -05:00
# 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