diff options
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20200224150903_remove_curated_flag_on_non_distributable_statuses.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20200224150903_remove_curated_flag_on_non_distributable_statuses.rb b/db/migrate/20200224150903_remove_curated_flag_on_non_distributable_statuses.rb new file mode 100644 index 000000000..45cc2a26d --- /dev/null +++ b/db/migrate/20200224150903_remove_curated_flag_on_non_distributable_statuses.rb @@ -0,0 +1,9 @@ +class RemoveCuratedFlagOnNonDistributableStatuses < ActiveRecord::Migration[5.2] + def up + Status.where(visibility: [:private, :limited, :direct], curated: true).in_batches.update_all(curated: false) + end + + def down + false + end +end |