Use query instead of model on migrations

parent 7afeace3
...@@ -12,6 +12,6 @@ class MigrateNewNotificationSetting < ActiveRecord::Migration ...@@ -12,6 +12,6 @@ class MigrateNewNotificationSetting < ActiveRecord::Migration
end end
def down def down
NotificationSetting.delete_all execute "DELETE FROM notification_settings"
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment