Fix test
This commit is contained in:
parent
a6b57e3890
commit
dbbd12efe4
3 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ class AddNoInsertFeedsToAntennas < ActiveRecord::Migration[7.0]
|
||||||
def up
|
def up
|
||||||
safety_assured do
|
safety_assured do
|
||||||
add_column_with_default :antennas, :insert_feeds, :boolean, default: false, allow_null: false
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ class AddQuoteToStatusReferences < ActiveRecord::Migration[7.0]
|
||||||
def up
|
def up
|
||||||
safety_assured do
|
safety_assured do
|
||||||
add_column_with_default :status_references, :quote, :boolean, default: false, allow_null: false
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ class RemoveRemoteUriFromLocalCustomEmojis < ActiveRecord::Migration[7.0]
|
||||||
def up
|
def up
|
||||||
safety_assured do
|
safety_assured do
|
||||||
CustomEmoji.transaction 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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue