Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Maes <jaspermaes.jm@gmail.com>2018-06-02 13:46:08 +0300
committerJasper Maes <jaspermaes.jm@gmail.com>2018-06-05 09:06:35 +0300
commit85a7e0813e9806ad3eb853e4a48c09ae5f78f94c (patch)
treedb7d77148d74f600b4d7e79c568afd816b9f1b9a /db/migrate/20180201110056_add_foreign_keys_to_todos.rb
parent800d3b88c78ee7a98fa41f3a1628c6c2a6d12a68 (diff)
Support rails5 in postgres indexes function and fix some migrations
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