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 10, 2023
1 parent 19308db commit f43d361
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class AddOrganizingCommitteeToContest < ActiveRecord::Migration[7.0]
def change
add_column :contests, :head_of_organizing_committee, :string, null: false, default: ''

Check notice

Code scanning / Rubocop

Check whether alter queries are combinable. Note

Rails/BulkChangeTable: You can use change\_table :contests, bulk: true to combine alter queries.
add_column :contests, :secretary_of_organizing_committee, :string, null: false, default: ''
end
end
9 changes: 5 additions & 4 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,5 @@ INSERT INTO "schema_migrations" (version) VALUES
('20230902145307'),
('20230902145308'),
('20230902145309'),
('20230930203405');


('20230930203405'),
('20231110173126');

0 comments on commit f43d361

Please sign in to comment.