Add room and dates to tracks

They are required only for accepted and confirmed self-organized tracks
This commit is contained in:
AEtherC0r3 2017-07-12 15:56:07 +03:00 committed by Stella Rouzi
parent d616c66745
commit fd93b04f16
9 changed files with 99 additions and 2 deletions

View file

@ -0,0 +1,7 @@
class AddRoomAndDatesToTracks < ActiveRecord::Migration
def change
add_reference :tracks, :room, index: true, foreign_key: true
add_column :tracks, :start_date, :date
add_column :tracks, :end_date, :date
end
end

View file

@ -522,8 +522,12 @@ ActiveRecord::Schema.define(version: 20170807092805) do
t.string "state"
t.boolean "cfp_active"
t.integer "submitter_id"
t.integer "room_id"
t.date "start_date"
t.date "end_date"
end
add_index "tracks", ["room_id"], name: "index_tracks_on_room_id"
add_index "tracks", ["submitter_id"], name: "index_tracks_on_submitter_id"
create_table "users", force: :cascade do |t|