This commit is contained in:
KMY 2023-12-21 10:04:27 +09:00
parent a6b57e3890
commit dbbd12efe4
3 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ class AddNoInsertFeedsToAntennas < ActiveRecord::Migration[7.0]
def up
safety_assured do
add_column_with_default :antennas, :insert_feeds, :boolean, default: false, allow_null: false
Antenna.where(insert_feeds: false).update_all(insert_feeds: true) # rubocop:disable Rails/SkipsModelValidations
Antenna.where(insert_feeds: false).update_all(insert_feeds: true)
end
end

View file

@ -12,7 +12,7 @@ class AddQuoteToStatusReferences < ActiveRecord::Migration[7.0]
def up
safety_assured do
add_column_with_default :status_references, :quote, :boolean, default: false, allow_null: false
StatusReference.where(attribute_type: 'QT').update_all(quote: true) # rubocop:disable Rails/SkipsModelValidations
StatusReference.where(attribute_type: 'QT').update_all(quote: true)
end
end

View file

@ -12,7 +12,7 @@ class RemoveRemoteUriFromLocalCustomEmojis < ActiveRecord::Migration[7.0]
def up
safety_assured do
CustomEmoji.transaction do
CustomEmoji.where(domain: nil).update_all(image_remote_url: nil, uri: nil) # rubocop:disable Rails/SkipsModelValidations
CustomEmoji.where(domain: nil).update_all(image_remote_url: nil, uri: nil)
end
end
end