Skip to content
This repository was archived by the owner on Sep 24, 2019. It is now read-only.

Commit f96a8c7

Browse files
committed
fix migration
1 parent 17778e1 commit f96a8c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/migrate/20170208051339_create_people.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def change
99
t.integer :height
1010
t.integer :mass
1111
t.string :skin_color
12-
t.references :homeworld, foreign_key: true
12+
t.references :homeworld, foreign_key: { to_table: :planets }
1313

1414
t.timestamps
1515
end

0 commit comments

Comments
 (0)