From 6fc5d46637d94af6f57e6c46421fd9c383344142 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kostiuk Date: Fri, 10 Nov 2023 19:45:19 +0200 Subject: [PATCH] Add organizing committee info to contest Resolves: #279 Resolves: #280 Signed-off-by: Kostiantyn Kostiuk --- .../20231110173126_add_organizing_committee_to_contest.rb | 8 ++++++++ db/structure.sql | 7 +++++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20231110173126_add_organizing_committee_to_contest.rb diff --git a/db/migrate/20231110173126_add_organizing_committee_to_contest.rb b/db/migrate/20231110173126_add_organizing_committee_to_contest.rb new file mode 100644 index 00000000..f6f3e5b0 --- /dev/null +++ b/db/migrate/20231110173126_add_organizing_committee_to_contest.rb @@ -0,0 +1,8 @@ +class AddOrganizingCommitteeToContest < ActiveRecord::Migration[7.0] + def change + change_table :contests, bulk: true do |t| + t.string :head_of_organizing_committee, null: false, default: '' + t.string :secretary_of_organizing_committee, null: false, default: '' + end + end +end diff --git a/db/structure.sql b/db/structure.sql index 612b5e7f..5a3fbc92 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -192,7 +192,9 @@ CREATE TABLE public.contests ( archive_open boolean DEFAULT false NOT NULL, institutions character varying[] DEFAULT '{}'::character varying[] NOT NULL, statistic_open boolean DEFAULT false NOT NULL, - main_judge character varying DEFAULT ''::character varying NOT NULL + main_judge character varying DEFAULT ''::character varying NOT NULL, + head_of_organizing_committee character varying DEFAULT ''::character varying NOT NULL, + secretary_of_organizing_committee character varying DEFAULT ''::character varying NOT NULL ); @@ -921,6 +923,7 @@ INSERT INTO "schema_migrations" (version) VALUES ('20230902145307'), ('20230902145308'), ('20230902145309'), -('20230930203405'); +('20230930203405'), +('20231110173126');