From 65ec1d3644effa74f9a6b63b65c60a856b2988fc Mon Sep 17 00:00:00 2001 From: Tyler Lemburg <trlemburg@gmail.com> Date: Tue, 17 Jan 2017 15:38:42 -0600 Subject: [PATCH] Update migrations to hold all data, this is now the central migration repository for all UNL Resource Scheduler and affiliated work --- app.rb | 2 ++ db/migrate/20160926160000_add_tour_type.rb | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 db/migrate/20160926160000_add_tour_type.rb diff --git a/app.rb b/app.rb index b05dafd..147d3c9 100644 --- a/app.rb +++ b/app.rb @@ -25,6 +25,8 @@ use Rack::CAS, server_url: 'https://login.unl.edu/cas', Time.zone = "America/Chicago" DIRECTORY_URL = 'http://directory.unl.edu/' +NIS_SS_ID = ServiceSpace.where(:name => 'Innovation Studio').first.id +NIS_TOOL_RESOURCE_CLASS_ID = 1 # this gives the user messages def flash(type, header, message) diff --git a/db/migrate/20160926160000_add_tour_type.rb b/db/migrate/20160926160000_add_tour_type.rb new file mode 100644 index 0000000..f33f66b --- /dev/null +++ b/db/migrate/20160926160000_add_tour_type.rb @@ -0,0 +1,11 @@ +require 'active_record' +require 'models/event_type' + +class AddTourType < ActiveRecord::Migration + def up + EventType.create({ + description: 'Tour', + service_space_id: 1 + }) + end +end \ No newline at end of file -- GitLab