1
0

20170711225116_fix_null_booleans.rb 699 B

123456789101112131415161718192021
  1. # frozen_string_literal: true
  2. class FixNullBooleans < ActiveRecord::Migration[5.1]
  3. def change
  4. safety_assured do
  5. change_column_default :domain_blocks, :reject_media, false
  6. change_column_null :domain_blocks, :reject_media, false, false
  7. change_column_default :imports, :approved, false
  8. change_column_null :imports, :approved, false, false
  9. change_column_null :statuses, :sensitive, false, false
  10. change_column_null :statuses, :reply, false, false
  11. change_column_null :users, :admin, false, false
  12. change_column_default :users, :otp_required_for_login, false
  13. change_column_null :users, :otp_required_for_login, false, false
  14. end
  15. end
  16. end