From 6b1a1834ad1715145f047790c8391b8a5558bece Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 20 Dec 2023 20:34:25 +0000 Subject: Created new Operation model and fixed Event associations with it --- db/migrate/20231220195530_add_operation_to_events.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20231220195530_add_operation_to_events.rb (limited to 'db/migrate/20231220195530_add_operation_to_events.rb') diff --git a/db/migrate/20231220195530_add_operation_to_events.rb b/db/migrate/20231220195530_add_operation_to_events.rb new file mode 100644 index 0000000..b95ded0 --- /dev/null +++ b/db/migrate/20231220195530_add_operation_to_events.rb @@ -0,0 +1,5 @@ +class AddOperationToEvents < ActiveRecord::Migration[7.1] + def change + add_reference :events, :operation, null: false, foreign_key: true + end +end -- cgit v1.2.3