about summary refs log tree commit diff
path: root/db/migrate/20170209184350_add_reply_to_statuses.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20170209184350_add_reply_to_statuses.rb')
-rw-r--r--db/migrate/20170209184350_add_reply_to_statuses.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20170209184350_add_reply_to_statuses.rb b/db/migrate/20170209184350_add_reply_to_statuses.rb
index c5074728b..b8b5c1306 100644
--- a/db/migrate/20170209184350_add_reply_to_statuses.rb
+++ b/db/migrate/20170209184350_add_reply_to_statuses.rb
@@ -1,7 +1,7 @@
 class AddReplyToStatuses < ActiveRecord::Migration[5.0]
   def up
     add_column :statuses, :reply, :boolean, nil: false, default: false
-    Status.update_all('reply = (in_reply_to_id IS NOT NULL)')
+    Status.unscoped.update_all('reply = (in_reply_to_id IS NOT NULL)')
   end
 
   def down