mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
AddInvoicesBuyerIdFk
This commit is contained in:
parent
f1b37853b9
commit
b177b3eab2
2 changed files with 15 additions and 0 deletions
5
db/migrate/20190811202347_add_invoices_buyer_id_fk.rb
Normal file
5
db/migrate/20190811202347_add_invoices_buyer_id_fk.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddInvoicesBuyerIdFk < ActiveRecord::Migration
|
||||
def change
|
||||
add_foreign_key :invoices, :registrars, column: :buyer_id
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue