diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-28 01:05:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-28 01:05:26 +0200 |
commit | 27719a4001db8b4804ae301f0f262c7bce8cbcfa (patch) | |
tree | 91286d64970fb1ed442357670038e573330ea552 /db/migrate/20170209184350_add_reply_to_statuses.rb | |
parent | ab33c4df942ec3fdc4d891f3db7ac8cdd3436945 (diff) |
Fix older migrations not working due to new default scope (#11983)
Fix #11952, regression from #11623
Diffstat (limited to 'db/migrate/20170209184350_add_reply_to_statuses.rb')
-rw-r--r-- | db/migrate/20170209184350_add_reply_to_statuses.rb | 2 |
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 |