Skip to content

Commit

Permalink
Add organizing committee info to contest
Browse files Browse the repository at this point in the history
Resolves: #279
Resolves: #280

Signed-off-by: Kostiantyn Kostiuk <[email protected]>
  • Loading branch information
kostyanf14 committed Nov 17, 2023
1 parent 3852d57 commit 6fc5d46
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
7 changes: 5 additions & 2 deletions db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
);


Expand Down Expand Up @@ -921,6 +923,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20230902145307'),
('20230902145308'),
('20230902145309'),
('20230930203405');
('20230930203405'),
('20231110173126');


0 comments on commit 6fc5d46

Please sign in to comment.