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..009d582c --- /dev/null +++ b/db/migrate/20231110173126_add_organizing_committee_to_contest.rb @@ -0,0 +1,6 @@ +class AddOrganizingCommitteeToContest < ActiveRecord::Migration[7.0] + def change + add_column :contests, :head_of_organizing_committee, :string, null: false, default: '' + add_column :contests, :secretary_of_organizing_committee, :string, null: false, default: '' + end +end diff --git a/db/structure.sql b/db/structure.sql index 612b5e7f..297e19e7 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,5 @@ INSERT INTO "schema_migrations" (version) VALUES ('20230902145307'), ('20230902145308'), ('20230902145309'), -('20230930203405'); - - +('20230930203405'), +('20231110173126');