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

Commit 9ea8a3d

Browse files
committed
fix migration
1 parent f96a8c7 commit 9ea8a3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/migrate/20170209185915_create_species.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def change
1010
t.string :hair_colors
1111
t.string :skin_colors
1212
t.string :language
13-
t.references :homeworld, foreign_key: true
13+
t.references :homeworld, foreign_key: { to_table: :planets }
1414

1515
t.timestamps
1616
end

0 commit comments

Comments
 (0)