Support forcing the order of rooms in the schedule

This commit is contained in:
Michael Ball 2020-07-16 11:25:20 -07:00
parent 02f0d4a254
commit a9d6faf1a3
6 changed files with 17 additions and 6 deletions

View file

@ -0,0 +1,5 @@
class AddOrderToRooms < ActiveRecord::Migration[5.2]
def change
add_column :rooms, :order, :int
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2020_07_15_034647) do
ActiveRecord::Schema.define(version: 2020_07_16_181602) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -408,6 +408,7 @@ ActiveRecord::Schema.define(version: 2020_07_15_034647) do
t.integer "size"
t.integer "venue_id", null: false
t.text "url"
t.integer "order"
end
create_table "schedules", force: :cascade do |t|