summaryrefslogtreecommitdiff
path: root/db/migrate/20161130095245_fill_routes_table.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-12-15 11:32:06 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-12-15 23:50:16 -0200
commitf140ae88c63d0d9976e33eb574702be5e182b851 (patch)
tree65718269b5df9af42f96436921e5bf81839d91a5 /db/migrate/20161130095245_fill_routes_table.rb
parent49a70d1e45b4f841379db059177856671c65159c (diff)
downloadgitlab-ce-f140ae88c63d0d9976e33eb574702be5e182b851.tar.gz
Don't use the Route model in migrations
Diffstat (limited to 'db/migrate/20161130095245_fill_routes_table.rb')
-rw-r--r--db/migrate/20161130095245_fill_routes_table.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20161130095245_fill_routes_table.rb b/db/migrate/20161130095245_fill_routes_table.rb
index 6754e583000..c3536d6d911 100644
--- a/db/migrate/20161130095245_fill_routes_table.rb
+++ b/db/migrate/20161130095245_fill_routes_table.rb
@@ -16,6 +16,6 @@ class FillRoutesTable < ActiveRecord::Migration
end
def down
- Route.delete_all(source_type: 'Namespace')
+ execute("DELETE FROM routes WHERE source_type = 'Namespace'")
end
end