20240713171841_add_application_to_reports.rb 290 B

12345678
  1. # frozen_string_literal: true
  2. class AddApplicationToReports < ActiveRecord::Migration[7.1]
  3. def change
  4. add_column :reports, :application_id, :bigint, null: true
  5. add_foreign_key :reports, :oauth_applications, column: :application_id, on_delete: :nullify, validate: false
  6. end
  7. end