Enable Rails/ReversibleMigration
cop (#33264)
This commit is contained in:
parent
315c170910
commit
43702b95a2
4 changed files with 16 additions and 7 deletions
|
@ -3,10 +3,10 @@
|
|||
class FixNullBooleans < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
safety_assured do
|
||||
change_column_default :domain_blocks, :reject_media, false
|
||||
change_column_default :domain_blocks, :reject_media, false # rubocop:disable Rails/ReversibleMigration
|
||||
change_column_null :domain_blocks, :reject_media, false, false
|
||||
|
||||
change_column_default :imports, :approved, false
|
||||
change_column_default :imports, :approved, false # rubocop:disable Rails/ReversibleMigration
|
||||
change_column_null :imports, :approved, false, false
|
||||
|
||||
change_column_null :statuses, :sensitive, false, false
|
||||
|
@ -14,7 +14,7 @@ class FixNullBooleans < ActiveRecord::Migration[5.1]
|
|||
|
||||
change_column_null :users, :admin, false, false
|
||||
|
||||
change_column_default :users, :otp_required_for_login, false
|
||||
change_column_default :users, :otp_required_for_login, false # rubocop:disable Rails/ReversibleMigration
|
||||
change_column_null :users, :otp_required_for_login, false, false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue