Browse Source
Already tested it against the production data of my instance, it's working!lets-bump-hometown-to-mastodon-4.2
2 changed files with 12 additions and 1 deletions
@ -0,0 +1,8 @@ |
|||||||
|
# frozen_string_literal: true |
||||||
|
|
||||||
|
class MigrateHometownExclusiveListsToMastodon < ActiveRecord::Migration[7.0] |
||||||
|
def up |
||||||
|
List.where(is_exclusive: true).in_batches.update_all(exclusive: :is_exclusive) # rubocop:disable Rails/SkipsModelValidations |
||||||
|
safety_assured { remove_column :lists, :is_exclusive } |
||||||
|
end |
||||||
|
end |
||||||
Loading…
Reference in new issue