forked from treehouse/mastodon
Use next instead of return in task (#4787)
parent
579c7a88e0
commit
a789315361
|
@ -273,7 +273,7 @@ namespace :mastodon do
|
||||||
|
|
||||||
desc 'Remove deprecated preview cards'
|
desc 'Remove deprecated preview cards'
|
||||||
task remove_deprecated_preview_cards: :environment do
|
task remove_deprecated_preview_cards: :environment do
|
||||||
return unless ActiveRecord::Base.connection.table_exists? 'deprecated_preview_cards'
|
next unless ActiveRecord::Base.connection.table_exists? 'deprecated_preview_cards'
|
||||||
|
|
||||||
class DeprecatedPreviewCard < ActiveRecord::Base
|
class DeprecatedPreviewCard < ActiveRecord::Base
|
||||||
self.inheritance_column = false
|
self.inheritance_column = false
|
||||||
|
|
Loading…
Reference in New Issue