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:
@@ -0,0 +1,5 @@
|
||||
class AddIsPublicToTournaments < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :tournaments, :is_public, :boolean
|
||||
end
|
||||
end
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user