Skip to content

Commit

Permalink
Add contest information on contest page
Browse files Browse the repository at this point in the history
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
  • Loading branch information
kostyanf14 committed Feb 11, 2024
1 parent 52e5963 commit 0b9b514
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/views/contests/show.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%== contest.info %>
5 changes: 5 additions & 0 deletions db/migrate/20240211194031_add_info_to_contests.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddInfoToContests < ActiveRecord::Migration[7.0]
def change
add_column :contests, :info, :text, null: false, default: ''
end
end
6 changes: 4 additions & 2 deletions db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ CREATE TABLE public.contests (
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,
head_of_appeal_commission character varying DEFAULT ''::character varying NOT NULL
head_of_appeal_commission character varying DEFAULT ''::character varying NOT NULL,
info text DEFAULT ''::text NOT NULL
);


Expand Down Expand Up @@ -926,6 +927,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20230902145309'),
('20230930203405'),
('20231110173126'),
('20240203172343');
('20240203172343'),
('20240211194031');


0 comments on commit 0b9b514

Please sign in to comment.