20200917192924_add_notify_to_follows.rb 418 B

1234567891011121314151617
  1. # frozen_string_literal: true
  2. class AddNotifyToFollows < ActiveRecord::Migration[5.2]
  3. disable_ddl_transaction!
  4. def up
  5. safety_assured do
  6. add_column :follows, :notify, :boolean, default: false, null: false
  7. add_column :follow_requests, :notify, :boolean, default: false, null: false
  8. end
  9. end
  10. def down
  11. remove_column :follows, :notify
  12. remove_column :follow_requests, :notify
  13. end
  14. end