diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-23 01:39:43 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 18:32:42 +0300 |
commit | bdbc7d967a0c3d95d5e4ea19a2a5be41268d3540 (patch) | |
tree | 58899ea2583f1cf5f370f657f584a99d57954c9e /db/migrate/20160831214543_migrate_project_features.rb | |
parent | 0beba0251ca5bfbbc0c1a60c5b0b44c972f252cd (diff) |
Revert "Enable Style/BarePercentLiterals"
This reverts commit 96bef54154e669f9a3e92c3a4bc76c0be3a52e48.
Diffstat (limited to 'db/migrate/20160831214543_migrate_project_features.rb')
-rw-r--r-- | db/migrate/20160831214543_migrate_project_features.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20160831214543_migrate_project_features.rb b/db/migrate/20160831214543_migrate_project_features.rb index a2f2267773c..79a5fb29d64 100644 --- a/db/migrate/20160831214543_migrate_project_features.rb +++ b/db/migrate/20160831214543_migrate_project_features.rb @@ -10,7 +10,7 @@ class MigrateProjectFeatures < ActiveRecord::Migration def up sql = - %{ + %Q{ INSERT INTO project_features(project_id, issues_access_level, merge_requests_access_level, wiki_access_level, builds_access_level, snippets_access_level, created_at, updated_at) SELECT @@ -29,7 +29,7 @@ class MigrateProjectFeatures < ActiveRecord::Migration end def down - sql = %{ + sql = %Q{ UPDATE projects SET issues_enabled = COALESCE((SELECT CASE WHEN issues_access_level = 20 THEN true ELSE false END AS issues_enabled FROM project_features WHERE project_features.project_id = projects.id), true), |