summaryrefslogtreecommitdiff
path: root/db/migrate/20180201110056_add_foreign_keys_to_todos.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20180201110056_add_foreign_keys_to_todos.rb')
-rw-r--r--db/migrate/20180201110056_add_foreign_keys_to_todos.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20180201110056_add_foreign_keys_to_todos.rb b/db/migrate/20180201110056_add_foreign_keys_to_todos.rb
index b7c40f8c01a..020b0550321 100644
--- a/db/migrate/20180201110056_add_foreign_keys_to_todos.rb
+++ b/db/migrate/20180201110056_add_foreign_keys_to_todos.rb
@@ -31,7 +31,7 @@ class AddForeignKeysToTodos < ActiveRecord::Migration
end
def down
- remove_foreign_key :todos, :users
+ remove_foreign_key :todos, column: :user_id
remove_foreign_key :todos, column: :author_id
remove_foreign_key :todos, :notes
end