1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Added is_public to a tournament to hide lineups and brackets until you're ready to make it public

This commit is contained in:
2023-01-01 23:16:12 -05:00
parent d675337d7a
commit c328bbd91c
15 changed files with 547 additions and 16 deletions

View File

@@ -0,0 +1,5 @@
class AddIsPublicToTournaments < ActiveRecord::Migration[6.1]
def change
add_column :tournaments, :is_public, :boolean
end
end

View File

@@ -0,0 +1,9 @@
class SetAllExistingTournamentsAsPublic < ActiveRecord::Migration[6.1]
def up
Tournament.update_all(is_public: true)
end
def down
Tournament.update_all(is_public: nil)
end
end