Add foreign key

#697

(cherry picked from commit 169ce19)
This commit is contained in:
Artur Beljajev 2018-02-11 03:21:11 +02:00
parent 2b743dba83
commit 030189ab69
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,5 @@
class AddMessagesRegistrarIdFk < ActiveRecord::Migration
def change
add_foreign_key :messages, :registrars, name: 'messages_registrar_id_fk'
end
end