You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
699 B
22 lines
699 B
# frozen_string_literal: true
|
|
|
|
class FixNullBooleans < ActiveRecord::Migration[5.1]
|
|
def change
|
|
safety_assured do
|
|
change_column_default :domain_blocks, :reject_media, false
|
|
change_column_null :domain_blocks, :reject_media, false, false
|
|
|
|
change_column_default :imports, :approved, false
|
|
change_column_null :imports, :approved, false, false
|
|
|
|
change_column_null :statuses, :sensitive, false, false
|
|
change_column_null :statuses, :reply, false, false
|
|
|
|
change_column_null :users, :admin, false, false
|
|
|
|
change_column_default :users, :otp_required_for_login, false
|
|
change_column_null :users, :otp_required_for_login, false, false
|
|
end
|
|
end
|
|
end
|