Regards!
I can add foreign key to table in Rails migration on this way:
add_foreign_key :teachers, :departamentos, name: "teachers_departamento_id",
column: :codigo_departamento, primary_key: :codigo
But, How do I add two columns into foreign key?
Thanks.