mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-08 23:34:51 +00:00
Added date to tournament
This commit is contained in:
5
db/migrate/20151230164000_tournament_date.rb
Normal file
5
db/migrate/20151230164000_tournament_date.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class TournamentDate < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :tournaments, :date, :date
|
||||
end
|
||||
end
|
||||
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20151230163202) do
|
||||
ActiveRecord::Schema.define(version: 20151230164000) do
|
||||
|
||||
create_table "delayed_jobs", force: :cascade do |t|
|
||||
t.integer "priority", default: 0, null: false
|
||||
@@ -94,6 +94,7 @@ ActiveRecord::Schema.define(version: 20151230163202) do
|
||||
t.text "weigh_in_ref"
|
||||
t.integer "user_id"
|
||||
t.integer "curently_generating_matches"
|
||||
t.date "date"
|
||||
end
|
||||
|
||||
add_index "tournaments", ["user_id"], name: "index_tournaments_on_user_id"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
# Mayor.create(name: 'Emanuel', city: cities.first)
|
||||
if Rails.env.development?
|
||||
User.create(id: 1, email: 'test@test.com', password: 'password', password_confirmation: 'password')
|
||||
Tournament.create(id: 200, name: 'test', address: 'some place', director: 'some guy', director_email: 'hismail@email.com', tournament_type: 'Pool to bracket', user_id: 1)
|
||||
Tournament.create(id: 200, name: 'test', address: 'some place', director: 'some guy', director_email: 'hismail@email.com', tournament_type: 'Pool to bracket', user_id: 1, date: Date.today)
|
||||
School.create(id: 200, name: 'Central Crossing', tournament_id: 200)
|
||||
School.create(id: 201, name: 'Turd Town', tournament_id: 200)
|
||||
School.create(id: 202, name: 'Shit Show', tournament_id: 200)
|
||||
|
||||
Reference in New Issue
Block a user