Files
mastodon/db/migrate/20260212131934_create_collection_reports.rb
2026-02-13 11:11:44 +00:00

13 lines
347 B
Ruby

# frozen_string_literal: true
class CreateCollectionReports < ActiveRecord::Migration[8.0]
def change
create_table :collection_reports do |t|
t.references :collection, null: false, foreign_key: { on_delete: :cascade }
t.references :report, null: false, foreign_key: { on_delete: :cascade }
t.timestamps
end
end
end