umlaut_journal_tocs 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +37 -0
  4. data/app/item_decorators/umlaut_journal_tocs_decorator.rb +50 -0
  5. data/app/service_adaptors/journal_tocs_adapter.rb +51 -0
  6. data/app/views/umlaut_journal_tocs/_bento_item.html.erb +80 -0
  7. data/app/views/umlaut_journal_tocs/_resolve_section.html.erb +10 -0
  8. data/config/locales/en.yml +5 -0
  9. data/config/routes.rb +2 -0
  10. data/lib/tasks/umlaut_journal_tocs_tasks.rake +4 -0
  11. data/lib/umlaut_journal_tocs.rb +26 -0
  12. data/lib/umlaut_journal_tocs/engine.rb +18 -0
  13. data/lib/umlaut_journal_tocs/version.rb +3 -0
  14. data/test/controller_test.rb +36 -0
  15. data/test/dummy/README.rdoc +28 -0
  16. data/test/dummy/Rakefile +6 -0
  17. data/test/dummy/app/assets/javascripts/application.js +17 -0
  18. data/test/dummy/app/assets/stylesheets/application.css +19 -0
  19. data/test/dummy/app/controllers/application_controller.rb +5 -0
  20. data/test/dummy/app/controllers/umlaut_controller.rb +136 -0
  21. data/test/dummy/app/helpers/application_helper.rb +2 -0
  22. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  23. data/test/dummy/bin/bundle +3 -0
  24. data/test/dummy/bin/rails +4 -0
  25. data/test/dummy/bin/rake +4 -0
  26. data/test/dummy/bin/setup +29 -0
  27. data/test/dummy/config.ru +4 -0
  28. data/test/dummy/config/application.rb +26 -0
  29. data/test/dummy/config/boot.rb +5 -0
  30. data/test/dummy/config/database.yml +60 -0
  31. data/test/dummy/config/environment.rb +5 -0
  32. data/test/dummy/config/environments/development.rb +45 -0
  33. data/test/dummy/config/environments/production.rb +83 -0
  34. data/test/dummy/config/environments/test.rb +42 -0
  35. data/test/dummy/config/initializers/assets.rb +11 -0
  36. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  37. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  38. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  39. data/test/dummy/config/initializers/inflections.rb +16 -0
  40. data/test/dummy/config/initializers/mime_types.rb +4 -0
  41. data/test/dummy/config/initializers/session_store.rb +3 -0
  42. data/test/dummy/config/initializers/umlaut_journal_tocs.rb +20 -0
  43. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  44. data/test/dummy/config/locales/en.yml +23 -0
  45. data/test/dummy/config/routes.rb +57 -0
  46. data/test/dummy/config/secrets.yml +22 -0
  47. data/test/dummy/config/umlaut_services.yml +23 -0
  48. data/test/dummy/db/migrate/20150901192508_umlaut_init.umlaut.rb +106 -0
  49. data/test/dummy/db/migrate/20150901192509_umlaut_add_service_response_index.umlaut.rb +10 -0
  50. data/test/dummy/db/schema.rb +118 -0
  51. data/test/dummy/public/404.html +67 -0
  52. data/test/dummy/public/422.html +67 -0
  53. data/test/dummy/public/500.html +66 -0
  54. data/test/dummy/public/favicon.ico +0 -0
  55. data/test/journal_tocs_adapter_test.rb +93 -0
  56. data/test/support/vcr_filter.rb +45 -0
  57. data/test/test_helper.rb +39 -0
  58. data/test/vcr_cassettes/generates_no_response.yml +49 -0
  59. data/test/vcr_cassettes/generates_response.yml +952 -0
  60. data/test/vcr_cassettes/gets_results.yml +804 -0
  61. data/test/vcr_cassettes/registers_proper_error.yml +40 -0
  62. metadata +200 -0
@@ -0,0 +1,42 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static file server for tests with Cache-Control for performance.
16
+ config.serve_static_files = true
17
+ config.static_cache_control = 'public, max-age=3600'
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Randomize the order test cases are executed.
35
+ config.active_support.test_order = :random
36
+
37
+ # Print deprecation notices to the stderr.
38
+ config.active_support.deprecation = :stderr
39
+
40
+ # Raises error for missing translations
41
+ # config.action_view.raise_on_missing_translations = true
42
+ end
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,20 @@
1
+ # The engine name 'umlaut_journal_tocs' will be used by default
2
+ # by the Umlaut service
3
+ BentoSearch.register_engine("umlaut_journal_tocs") do |conf|
4
+ conf.engine = "JournalTocsForJournal"
5
+ conf.registered_email = defined?(VCRFilter) ? VCRFilter[:journal_tocs_email] : ENV["JOURNAL_TOCS_EMAIL"]
6
+ conf.for_display do |display|
7
+ display.decorator = 'UmlautJournalTocsDecorator'
8
+ display.item_partial = "umlaut_journal_tocs/bento_item"
9
+ end
10
+ end
11
+
12
+
13
+ # One we use in testing to test a bad email
14
+ BentoSearch.register_engine("bad_email_journal_tocs") do |conf|
15
+ conf.engine = "JournalTocsForJournal"
16
+ conf.registered_email = "nobody@nowhere.com"
17
+ conf.for_display do |display|
18
+ display.decorator = 'UmlautJournalTocsDecorator'
19
+ end
20
+ end
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,57 @@
1
+ Rails.application.routes.draw do
2
+ Umlaut::Routes.new(self).draw
3
+ # The priority is based upon order of creation: first created -> highest priority.
4
+ # See how all your routes lay out with "rake routes".
5
+
6
+ # You can have the root of your site routed with "root"
7
+ # root 'welcome#index'
8
+
9
+ # Example of regular route:
10
+ # get 'products/:id' => 'catalog#view'
11
+
12
+ # Example of named route that can be invoked with purchase_url(id: product.id)
13
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
14
+
15
+ # Example resource route (maps HTTP verbs to controller actions automatically):
16
+ # resources :products
17
+
18
+ # Example resource route with options:
19
+ # resources :products do
20
+ # member do
21
+ # get 'short'
22
+ # post 'toggle'
23
+ # end
24
+ #
25
+ # collection do
26
+ # get 'sold'
27
+ # end
28
+ # end
29
+
30
+ # Example resource route with sub-resources:
31
+ # resources :products do
32
+ # resources :comments, :sales
33
+ # resource :seller
34
+ # end
35
+
36
+ # Example resource route with more complex sub-resources:
37
+ # resources :products do
38
+ # resources :comments
39
+ # resources :sales do
40
+ # get 'recent', on: :collection
41
+ # end
42
+ # end
43
+
44
+ # Example resource route with concerns:
45
+ # concern :toggleable do
46
+ # post 'toggle'
47
+ # end
48
+ # resources :posts, concerns: :toggleable
49
+ # resources :photos, concerns: :toggleable
50
+
51
+ # Example resource route within a namespace:
52
+ # namespace :admin do
53
+ # # Directs /admin/products/* to Admin::ProductsController
54
+ # # (app/controllers/admin/products_controller.rb)
55
+ # resources :products
56
+ # end
57
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 37556d318cace9771bbdfae3aa5b76012f43454a37032af13bc2a81cd634c6c92d6588148316501ea660525388a2a49f05278e18f74fea1319b6a33b40eb5cc3
15
+
16
+ test:
17
+ secret_key_base: ea431b7b2a6aa50f5b9903e1e8e48636d9fcd56b94ecb34556c14bbdd7c347d2db60539dd15bedda490dbe0e2202e8debe5b826b4df5b66399d6b034610bfff5
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,23 @@
1
+ # Configure what service plugins are used by Umlaut. This skeleton file
2
+ # has been generated into your app to help you get started.
3
+ #
4
+ # If a service has "disabled:true", it's currently turned off.
5
+ #
6
+ # Some services require local api key or connection details as config.
7
+ # Most services take other options for custom configuration too, not
8
+ # all options are neccesarily listed as examples here, see source
9
+ # or source-generated docs for more info.
10
+ #
11
+ # The services in the 'default' group are loaded every time.
12
+ # You can optionally create other groups of services, that can be loaded
13
+ # by URL query params, or based on other request params. More info?
14
+ #
15
+ # This file is run through ERB, so you can use <%= %> tags for dynamic
16
+ # ruby content if you like.
17
+ #
18
+
19
+ default:
20
+ services:
21
+ journal_tocs:
22
+ type: JournalTocsAdapter
23
+ priority: 1
@@ -0,0 +1,106 @@
1
+ # This migration comes from umlaut (originally 1)
2
+ class UmlautInit < ActiveRecord::Migration
3
+ def change
4
+ create_table "clickthroughs" do |t|
5
+ t.integer "request_id", :default => 0, :null => false
6
+ t.integer "service_response_id", :default => 0, :null => false
7
+ t.datetime "created_at", :null => false
8
+ end
9
+
10
+ add_index "clickthroughs", ["created_at"], :name => "click_created_idx"
11
+ add_index "clickthroughs", ["request_id"], :name => "click_req_id"
12
+ add_index "clickthroughs", ["service_response_id"], :name => "click_serv_resp_idx"
13
+
14
+ create_table "dispatched_services" do |t|
15
+ t.integer "request_id", :default => 0, :null => false
16
+ t.string "service_id", :default => "0", :null => false
17
+ t.datetime "updated_at", :null => false
18
+ t.text "exception_info"
19
+ t.string "status", :null => false
20
+ t.datetime "created_at"
21
+ end
22
+
23
+ add_index "dispatched_services", ["request_id", "service_id"], :name => "dptch_request_id"
24
+
25
+ create_table "permalinks" do |t|
26
+ t.integer "referent_id", :default => 0
27
+ t.date "created_on", :null => false
28
+ t.text "context_obj_serialized"
29
+ t.string "orig_rfr_id", :limit => 256
30
+ t.date "last_access"
31
+ end
32
+
33
+ add_index "permalinks", ["referent_id"], :name => "plink_referent_idx"
34
+
35
+ create_table "referent_values" do |t|
36
+ t.integer "referent_id", :default => 0, :null => false
37
+ t.string "key_name", :limit => 50, :default => "", :null => false
38
+ t.text "value"
39
+ t.string "normalized_value"
40
+ t.boolean "metadata", :default => false, :null => false
41
+ t.boolean "private_data", :default => false, :null => false
42
+ t.datetime "created_at"
43
+ end
44
+
45
+ add_index "referent_values", ["key_name", "normalized_value"], :name => "by_name_and_normal_val"
46
+ add_index "referent_values", ["referent_id", "key_name", "normalized_value"], :name => "rft_val_referent_idx"
47
+
48
+ create_table "referents" do |t|
49
+ t.string "atitle"
50
+ t.string "title"
51
+ t.string "issn", :limit => 10
52
+ t.string "isbn", :limit => 13
53
+ t.string "year", :limit => 4
54
+ t.string "volume", :limit => 10
55
+ t.datetime "created_at"
56
+ end
57
+
58
+ add_index "referents", ["atitle", "title", "issn", "isbn", "year", "volume"], :name => "rft_shortcut_idx"
59
+ add_index "referents", ["isbn"], :name => "index_referents_on_isbn"
60
+ add_index "referents", ["issn", "year", "volume"], :name => "by_issn"
61
+ add_index "referents", ["title"], :name => "index_referents_on_title"
62
+ add_index "referents", ["volume"], :name => "index_referents_on_volume"
63
+ add_index "referents", ["year", "volume"], :name => "by_year"
64
+
65
+ create_table "requests" do |t|
66
+ t.string "session_id", :limit => 100, :default => "", :null => false
67
+ t.integer "referent_id", :default => 0, :null => false
68
+ t.string "referrer_id"
69
+ t.datetime "created_at", :null => false
70
+ t.string "client_ip_addr"
71
+ t.boolean "client_ip_is_simulated"
72
+ t.string "contextobj_fingerprint", :limit => 32
73
+ t.string "http_env", :limit => 2048
74
+ end
75
+
76
+ add_index "requests", ["client_ip_addr"], :name => "index_requests_on_client_ip_addr"
77
+ add_index "requests", ["contextobj_fingerprint"], :name => "index_requests_on_contextobj_fingerprint"
78
+ add_index "requests", ["created_at"], :name => "req_created_at"
79
+ add_index "requests", ["referent_id", "referrer_id"], :name => "context_object_idx"
80
+ add_index "requests", ["session_id"], :name => "req_sess_idx"
81
+
82
+ create_table "service_responses" do |t|
83
+ t.string "service_id", :limit => 25, :null => false
84
+ t.string "response_key", :default => ""
85
+ t.string "value_string"
86
+ t.string "value_alt_string"
87
+ t.text "value_text"
88
+ t.string "display_text"
89
+ t.string "url", :limit => 1024
90
+ t.text "notes"
91
+ t.text "service_data"
92
+ t.datetime "created_at"
93
+ t.string "service_type_value_name"
94
+ t.integer "request_id"
95
+ end
96
+
97
+ add_index "service_responses", ["service_id", "response_key", "value_string", "value_alt_string"], :name => "svc_resp_service_id"
98
+
99
+ create_table "sfx_urls" do |t|
100
+ t.string "url"
101
+ end
102
+
103
+ add_index "sfx_urls", ["url"], :name => "index_sfx_urls_on_url"
104
+
105
+ end
106
+ end
@@ -0,0 +1,10 @@
1
+ # This migration comes from umlaut (originally 2)
2
+ class UmlautAddServiceResponseIndex < ActiveRecord::Migration
3
+ def up
4
+ add_index "service_responses", ["request_id"]
5
+ end
6
+
7
+ def down
8
+ remove_index "service_responses", ["request_id"]
9
+ end
10
+ end
@@ -0,0 +1,118 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20150901192509) do
15
+
16
+ create_table "clickthroughs", force: :cascade do |t|
17
+ t.integer "request_id", default: 0, null: false
18
+ t.integer "service_response_id", default: 0, null: false
19
+ t.datetime "created_at", null: false
20
+ end
21
+
22
+ add_index "clickthroughs", ["created_at"], name: "click_created_idx"
23
+ add_index "clickthroughs", ["request_id"], name: "click_req_id"
24
+ add_index "clickthroughs", ["service_response_id"], name: "click_serv_resp_idx"
25
+
26
+ create_table "dispatched_services", force: :cascade do |t|
27
+ t.integer "request_id", default: 0, null: false
28
+ t.string "service_id", default: "0", null: false
29
+ t.datetime "updated_at", null: false
30
+ t.text "exception_info"
31
+ t.string "status", null: false
32
+ t.datetime "created_at"
33
+ end
34
+
35
+ add_index "dispatched_services", ["request_id", "service_id"], name: "dptch_request_id"
36
+
37
+ create_table "permalinks", force: :cascade do |t|
38
+ t.integer "referent_id", default: 0
39
+ t.date "created_on", null: false
40
+ t.text "context_obj_serialized"
41
+ t.string "orig_rfr_id", limit: 256
42
+ t.date "last_access"
43
+ end
44
+
45
+ add_index "permalinks", ["referent_id"], name: "plink_referent_idx"
46
+
47
+ create_table "referent_values", force: :cascade do |t|
48
+ t.integer "referent_id", default: 0, null: false
49
+ t.string "key_name", limit: 50, default: "", null: false
50
+ t.text "value"
51
+ t.string "normalized_value"
52
+ t.boolean "metadata", default: false, null: false
53
+ t.boolean "private_data", default: false, null: false
54
+ t.datetime "created_at"
55
+ end
56
+
57
+ add_index "referent_values", ["key_name", "normalized_value"], name: "by_name_and_normal_val"
58
+ add_index "referent_values", ["referent_id", "key_name", "normalized_value"], name: "rft_val_referent_idx"
59
+
60
+ create_table "referents", force: :cascade do |t|
61
+ t.string "atitle"
62
+ t.string "title"
63
+ t.string "issn", limit: 10
64
+ t.string "isbn", limit: 13
65
+ t.string "year", limit: 4
66
+ t.string "volume", limit: 10
67
+ t.datetime "created_at"
68
+ end
69
+
70
+ add_index "referents", ["atitle", "title", "issn", "isbn", "year", "volume"], name: "rft_shortcut_idx"
71
+ add_index "referents", ["isbn"], name: "index_referents_on_isbn"
72
+ add_index "referents", ["issn", "year", "volume"], name: "by_issn"
73
+ add_index "referents", ["title"], name: "index_referents_on_title"
74
+ add_index "referents", ["volume"], name: "index_referents_on_volume"
75
+ add_index "referents", ["year", "volume"], name: "by_year"
76
+
77
+ create_table "requests", force: :cascade do |t|
78
+ t.string "session_id", limit: 100, default: "", null: false
79
+ t.integer "referent_id", default: 0, null: false
80
+ t.string "referrer_id"
81
+ t.datetime "created_at", null: false
82
+ t.string "client_ip_addr"
83
+ t.boolean "client_ip_is_simulated"
84
+ t.string "contextobj_fingerprint", limit: 32
85
+ t.string "http_env", limit: 2048
86
+ end
87
+
88
+ add_index "requests", ["client_ip_addr"], name: "index_requests_on_client_ip_addr"
89
+ add_index "requests", ["contextobj_fingerprint"], name: "index_requests_on_contextobj_fingerprint"
90
+ add_index "requests", ["created_at"], name: "req_created_at"
91
+ add_index "requests", ["referent_id", "referrer_id"], name: "context_object_idx"
92
+ add_index "requests", ["session_id"], name: "req_sess_idx"
93
+
94
+ create_table "service_responses", force: :cascade do |t|
95
+ t.string "service_id", limit: 25, null: false
96
+ t.string "response_key", default: ""
97
+ t.string "value_string"
98
+ t.string "value_alt_string"
99
+ t.text "value_text"
100
+ t.string "display_text"
101
+ t.string "url", limit: 1024
102
+ t.text "notes"
103
+ t.text "service_data"
104
+ t.datetime "created_at"
105
+ t.string "service_type_value_name"
106
+ t.integer "request_id"
107
+ end
108
+
109
+ add_index "service_responses", ["request_id"], name: "index_service_responses_on_request_id"
110
+ add_index "service_responses", ["service_id", "response_key", "value_string", "value_alt_string"], name: "svc_resp_service_id"
111
+
112
+ create_table "sfx_urls", force: :cascade do |t|
113
+ t.string "url"
114
+ end
115
+
116
+ add_index "sfx_urls", ["url"], name: "index_sfx_urls_on_url"
117
+
118
+ end