diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-04-08 16:49:01 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-04-08 16:49:01 -0300 |
commit | d11288be9580633baa3b21b4c70a5fc01e53d094 (patch) | |
tree | bd0faf4f375ccc47fe984c9aafdf665600d614f7 /db/migrate/20160328115649_migrate_new_notification_setting.rb | |
parent | 7afeace35474249c9aeb898f3a56180745106169 (diff) | |
download | gitlab-ce-d11288be9580633baa3b21b4c70a5fc01e53d094.tar.gz |
Use query instead of model on migrations
Diffstat (limited to 'db/migrate/20160328115649_migrate_new_notification_setting.rb')
-rw-r--r-- | db/migrate/20160328115649_migrate_new_notification_setting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20160328115649_migrate_new_notification_setting.rb b/db/migrate/20160328115649_migrate_new_notification_setting.rb index 6a68890f5b1..0a110869027 100644 --- a/db/migrate/20160328115649_migrate_new_notification_setting.rb +++ b/db/migrate/20160328115649_migrate_new_notification_setting.rb @@ -12,6 +12,6 @@ class MigrateNewNotificationSetting < ActiveRecord::Migration end def down - NotificationSetting.delete_all + execute "DELETE FROM notification_settings" end end |