diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-12-15 11:32:06 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-12-15 23:50:16 -0200 |
commit | f140ae88c63d0d9976e33eb574702be5e182b851 (patch) | |
tree | 65718269b5df9af42f96436921e5bf81839d91a5 /db/migrate/20161130095245_fill_routes_table.rb | |
parent | 49a70d1e45b4f841379db059177856671c65159c (diff) | |
download | gitlab-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.rb | 2 |
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 |