Add contacts.copy_from_id foreign key

#660
This commit is contained in:
Artur Beljajev 2018-01-23 14:47:21 +02:00
parent e1b6af03db
commit 40d64fb65b
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,5 @@
class AddContactsCopyFromIdFk < ActiveRecord::Migration
def change
add_foreign_key :contacts, :contacts, column: :copy_from_id
end
end