diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-22 16:39:43 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:32:42 -0600 |
commit | bdbc7d967a0c3d95d5e4ea19a2a5be41268d3540 (patch) | |
tree | 58899ea2583f1cf5f370f657f584a99d57954c9e /db/migrate | |
parent | 0beba0251ca5bfbbc0c1a60c5b0b44c972f252cd (diff) | |
download | gitlab-ce-bdbc7d967a0c3d95d5e4ea19a2a5be41268d3540.tar.gz |
Revert "Enable Style/BarePercentLiterals"
This reverts commit 96bef54154e669f9a3e92c3a4bc76c0be3a52e48.
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20160610201627_migrate_users_notification_level.rb | 4 | ||||
-rw-r--r-- | db/migrate/20160831214543_migrate_project_features.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/db/migrate/20160610201627_migrate_users_notification_level.rb b/db/migrate/20160610201627_migrate_users_notification_level.rb index 9da67b59dd1..ce4f00e25fa 100644 --- a/db/migrate/20160610201627_migrate_users_notification_level.rb +++ b/db/migrate/20160610201627_migrate_users_notification_level.rb @@ -5,7 +5,7 @@ class MigrateUsersNotificationLevel < ActiveRecord::Migration DOWNTIME = false def up - execute(%{ + execute(%Q{ INSERT INTO notification_settings (user_id, level, created_at, updated_at) (SELECT id, notification_level, created_at, updated_at FROM users WHERE notification_level != 1) @@ -15,7 +15,7 @@ class MigrateUsersNotificationLevel < ActiveRecord::Migration # Migrates from notification settings back to user notification_level # If no value is found the default level of 1 will be used def down - execute(%{ + execute(%Q{ UPDATE users u SET notification_level = COALESCE((SELECT level FROM notification_settings WHERE user_id = u.id AND source_type IS NULL), 1) }) 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), |