Add times to Conference

Add start hour and end hour to conference to be able to make the schedule times changeable
This commit is contained in:
Ana 2016-08-15 12:26:47 +02:00 committed by Ana María Martínez Gómez
parent 7000e63700
commit b80aff3cce
5 changed files with 50 additions and 1 deletions

View file

@ -0,0 +1,6 @@
class AddTimesToConferences < ActiveRecord::Migration
def change
add_column :conferences, :start_hour, :integer, default: 9
add_column :conferences, :end_hour, :integer, default: 20
end
end

View file

@ -98,6 +98,8 @@ ActiveRecord::Schema.define(version: 20170213145807) do
t.text "description"
t.integer "registration_limit", default: 0
t.string "picture"
t.integer "start_hour", default: 9
t.integer "end_hour", default: 20
end
create_table "conferences_questions", id: false, force: :cascade do |t|