20240712064044_remove_dismissed_from_notification_requests.rb 385 B

1234567891011121314
  1. # frozen_string_literal: true
  2. class RemoveDismissedFromNotificationRequests < ActiveRecord::Migration[7.1]
  3. def up
  4. safety_assured do
  5. execute 'DELETE FROM notification_requests WHERE dismissed'
  6. remove_column :notification_requests, :dismissed
  7. end
  8. end
  9. def down
  10. add_column :notification_requests, :dismissed, :boolean, default: false, null: false
  11. end
  12. end