The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

20 lines
668 B

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