enju_leaf 1.3.2 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +38 -0
  3. data/Rakefile +9 -1
  4. data/app/assets/javascripts/enju_leaf.js +1 -1
  5. data/app/assets/javascripts/{enju.menu.js → menu.js} +0 -0
  6. data/app/assets/javascripts/mobile.js +1 -1
  7. data/app/assets/stylesheets/enju.css +2 -0
  8. data/app/views/devise/registrations/edit.html.erb +1 -1
  9. data/app/views/page/about.en.html.erb +7 -7
  10. data/app/views/page/about.ja.html.erb +7 -7
  11. data/app/views/page/configuration.html.erb +2 -0
  12. data/app/views/page/opensearch.xml.builder +1 -0
  13. data/app/views/page/system_information.html.erb +7 -1
  14. data/config/locales/en.yml +7 -203
  15. data/config/locales/ja.yml +7 -193
  16. data/lib/enju_leaf.rb +0 -1
  17. data/lib/enju_leaf/version.rb +1 -1
  18. data/lib/generators/enju_leaf/quick_install/quick_install_generator.rb +4 -19
  19. data/lib/generators/enju_leaf/seed/seed_generator.rb +29 -0
  20. data/lib/generators/enju_leaf/setup/setup_generator.rb +13 -14
  21. data/lib/generators/enju_leaf/setup/templates/Procfile +1 -1
  22. data/lib/generators/enju_leaf/setup/templates/db/seeds.rb +13 -12
  23. data/lib/tasks/enju_leaf_tasks.rake +2 -1
  24. data/spec/dummy/app/models/application_record.rb +3 -0
  25. data/spec/dummy/app/models/user.rb +1 -1
  26. data/spec/dummy/config/application.rb +1 -1
  27. data/spec/dummy/db/schema.rb +0 -390
  28. data/spec/views/page/configuration.html.erb_spec.rb +1 -1
  29. metadata +76 -253
  30. data/README.rdoc +0 -30
  31. data/lib/generators/enju_leaf/setup/templates/db/fixtures/roles.yml +0 -29
  32. data/lib/generators/enju_leaf/setup/templates/db/fixtures/user_groups.yml +0 -7
  33. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  34. data/spec/dummy/db/migrate/032_create_checkins.rb +0 -17
  35. data/spec/dummy/db/migrate/033_create_checkouts.rb +0 -25
  36. data/spec/dummy/db/migrate/035_create_reserves.rb +0 -26
  37. data/spec/dummy/db/migrate/055_create_bookmarks.rb +0 -22
  38. data/spec/dummy/db/migrate/121_create_checked_items.rb +0 -17
  39. data/spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb +0 -16
  40. data/spec/dummy/db/migrate/20081030023412_create_checkout_types.rb +0 -17
  41. data/spec/dummy/db/migrate/20081030023518_create_user_group_has_checkout_types.rb +0 -25
  42. data/spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb +0 -18
  43. data/spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb +0 -17
  44. data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +0 -15
  45. data/spec/dummy/db/migrate/20081212151614_create_bookmark_stats.rb +0 -13
  46. data/spec/dummy/db/migrate/20081212151820_create_bookmark_stat_has_manifestations.rb +0 -13
  47. data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +0 -15
  48. data/spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb +0 -17
  49. data/spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb +0 -17
  50. data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +0 -15
  51. data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +0 -15
  52. data/spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb +0 -17
  53. data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +0 -23
  54. data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +0 -15
  55. data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +0 -21
  56. data/spec/dummy/db/migrate/20100222124420_add_allow_bookmark_external_url_to_library_group.rb +0 -9
  57. data/spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb +0 -9
  58. data/spec/dummy/db/migrate/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb +0 -9
  59. data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
  60. data/spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb +0 -9
  61. data/spec/dummy/db/migrate/20111129044509_add_pickup_location_to_reserve.rb +0 -6
  62. data/spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb +0 -5
  63. data/spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb +0 -6
  64. data/spec/dummy/db/migrate/20111231145823_add_share_bookmarks_to_user.rb +0 -5
  65. data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +0 -5
  66. data/spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb +0 -5
  67. data/spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb +0 -6
  68. data/spec/dummy/db/migrate/20130303124821_add_retained_at_to_reserve.rb +0 -5
  69. data/spec/dummy/db/migrate/20130304015019_add_postponed_at_to_reserve.rb +0 -5
  70. data/spec/dummy/db/migrate/20130416054135_add_circulation_status_id_to_item.rb +0 -8
  71. data/spec/dummy/db/migrate/20130519065638_add_lock_version_to_reserve.rb +0 -5
  72. data/spec/dummy/db/migrate/20130519065837_add_lock_version_to_checkin.rb +0 -5
  73. data/spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb +0 -18
  74. data/spec/dummy/db/migrate/20140524135607_create_bookmark_stat_transitions.rb +0 -18
  75. data/spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb +0 -18
  76. data/spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb +0 -18
  77. data/spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb +0 -18
  78. data/spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb +0 -18
  79. data/spec/dummy/db/migrate/20140529014410_create_item_transitions.rb +0 -18
  80. data/spec/dummy/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb +0 -12
  81. data/spec/dummy/db/migrate/20140810091231_add_checkout_icalendar_token_to_profile.rb +0 -6
  82. data/spec/dummy/db/migrate/20140810091417_add_save_checkout_history_to_profile.rb +0 -5
  83. data/spec/dummy/db/migrate/20140812093836_add_share_bookmarks_to_profile.rb +0 -5
  84. data/spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb +0 -6
  85. data/spec/dummy/db/migrate/20141020120523_add_library_id_to_checkout.rb +0 -6
  86. data/spec/dummy/db/migrate/20150106001709_create_demands.rb +0 -14
  87. data/spec/dummy/db/migrate/20150421023923_create_identities.rb +0 -15
  88. data/spec/dummy/db/migrate/20151126005552_add_provider_to_identity.rb +0 -5
  89. data/spec/dummy/db/migrate/20160703184619_add_most_recent_to_reserve_transitions.rb +0 -9
  90. data/spec/dummy/db/migrate/20160703184650_add_most_recent_to_manifestation_checkout_stat_transitions.rb +0 -9
  91. data/spec/dummy/db/migrate/20160703184723_add_most_recent_to_manifestation_reserve_stat_transitions.rb +0 -9
  92. data/spec/dummy/db/migrate/20160703184747_add_most_recent_to_user_checkout_stat_transitions.rb +0 -9
  93. data/spec/dummy/db/migrate/20160703184805_add_most_recent_to_user_reserve_stat_transitions.rb +0 -9
  94. data/spec/dummy/db/migrate/20160703190209_add_foreign_key_on_manifestation_id_to_reserve.rb +0 -5
  95. data/spec/dummy/db/migrate/20160820004638_add_attachment_attachment_to_carrier_types.rb +0 -11
  96. data/spec/dummy/db/migrate/20171014084528_add_header_logo_to_library_group.rb +0 -5
  97. data/spec/fixtures/agent_import_files.yml +0 -44
  98. data/spec/fixtures/agent_import_results.yml +0 -26
  99. data/spec/fixtures/agent_relationship_types.yml +0 -34
  100. data/spec/fixtures/agent_relationships.yml +0 -25
  101. data/spec/fixtures/agent_types.yml +0 -35
  102. data/spec/fixtures/agents.yml +0 -326
  103. data/spec/fixtures/baskets.yml +0 -80
  104. data/spec/fixtures/carrier_type_has_checkout_types.yml +0 -30
  105. data/spec/fixtures/checked_items.yml +0 -34
  106. data/spec/fixtures/checkins.yml +0 -54
  107. data/spec/fixtures/checkout_stat_has_manifestations.yml +0 -23
  108. data/spec/fixtures/checkout_stat_has_users.yml +0 -23
  109. data/spec/fixtures/checkout_types.yml +0 -33
  110. data/spec/fixtures/checkouts.yml +0 -162
  111. data/spec/fixtures/circulation_statuses.yml +0 -119
  112. data/spec/fixtures/create_types.yml +0 -47
  113. data/spec/fixtures/creates.yml +0 -66
  114. data/spec/fixtures/donates.yml +0 -31
  115. data/spec/fixtures/event_categories.yml +0 -55
  116. data/spec/fixtures/events.yml +0 -116
  117. data/spec/fixtures/exemplifies.yml +0 -168
  118. data/spec/fixtures/import_requests.yml +0 -25
  119. data/spec/fixtures/item_has_use_restrictions.yml +0 -60
  120. data/spec/fixtures/items.yml +0 -303
  121. data/spec/fixtures/lending_policies.yml +0 -98
  122. data/spec/fixtures/licenses.yml +0 -29
  123. data/spec/fixtures/manifestation_checkout_stats.yml +0 -27
  124. data/spec/fixtures/manifestation_relationship_types.yml +0 -29
  125. data/spec/fixtures/manifestation_relationships.yml +0 -30
  126. data/spec/fixtures/manifestation_reserve_stats.yml +0 -27
  127. data/spec/fixtures/medium_of_performances.yml +0 -29
  128. data/spec/fixtures/message_requests.yml +0 -27
  129. data/spec/fixtures/message_templates.yml +0 -105
  130. data/spec/fixtures/owns.yml +0 -27
  131. data/spec/fixtures/picture_files.yml +0 -64
  132. data/spec/fixtures/produce_types.yml +0 -31
  133. data/spec/fixtures/produces.yml +0 -150
  134. data/spec/fixtures/realize_types.yml +0 -39
  135. data/spec/fixtures/realizes.yml +0 -87
  136. data/spec/fixtures/request_status_types.yml +0 -63
  137. data/spec/fixtures/request_types.yml +0 -55
  138. data/spec/fixtures/reserve_stat_has_manifestations.yml +0 -23
  139. data/spec/fixtures/reserve_stat_has_users.yml +0 -23
  140. data/spec/fixtures/reserve_transitions.yml +0 -88
  141. data/spec/fixtures/reserves.yml +0 -162
  142. data/spec/fixtures/resource_import_files.yml +0 -44
  143. data/spec/fixtures/resource_import_results.yml +0 -29
  144. data/spec/fixtures/series_statements.yml +0 -45
  145. data/spec/fixtures/subscribes.yml +0 -45
  146. data/spec/fixtures/subscriptions.yml +0 -27
  147. data/spec/fixtures/use_restrictions.yml +0 -92
  148. data/spec/fixtures/user_checkout_stats.yml +0 -27
  149. data/spec/fixtures/user_group_has_checkout_types.yml +0 -110
@@ -1,7 +1,6 @@
1
1
  require "enju_leaf/engine"
2
2
  require "enju_leaf/version"
3
3
  require 'csv'
4
- require 'rss'
5
4
  require 'nkf'
6
5
  require 'ipaddr'
7
6
 
@@ -1,3 +1,3 @@
1
1
  module EnjuLeaf
2
- VERSION = "1.3.2"
2
+ VERSION = "1.3.4".freeze
3
3
  end
@@ -9,30 +9,15 @@ class EnjuLeaf::QuickInstallGenerator < Rails::Generators::Base
9
9
  rake("enju_library_engine:install:migrations")
10
10
  rake("enju_biblio_engine:install:migrations")
11
11
  rake("enju_manifestation_viewer_engine:install:migrations")
12
+ rake("enju_subject_engine:install:migrations")
13
+ rake("enju_inventory_engine:install:migrations")
12
14
  if !ENV['ENJU_SKIP_CONFIG']
15
+ generate("enju_seed:setup")
13
16
  generate("enju_library:setup")
14
17
  generate("enju_biblio:setup")
15
18
  generate("enju_circulation:setup")
16
19
  generate("enju_subject:setup")
20
+ generate("enju_inventory:setup")
17
21
  end
18
- rake("db:migrate", env: environment)
19
- rake("enju_leaf:setup", env: environment)
20
- rake("enju_circulation:setup", env: environment)
21
- rake("enju_subject:setup", env: environment)
22
- rake("assets:precompile", env: environment) if environment == 'production'
23
- rake("db:seed", env: environment)
24
- if !ENV['ENJU_SKIP_SOLR']
25
- if ENV['OS'] == 'Windows_NT'
26
- rake("sunspot:solr:run", env: environment)
27
- else
28
- rake("sunspot:solr:start", env: environment)
29
- sleep 5
30
- rake("environment sunspot:reindex", env: environment)
31
- rake("sunspot:solr:stop", env: environment)
32
- end
33
- end
34
-
35
- rake("enju_library:upgrade")
36
- rake("enju_leaf:load_asset_files")
37
22
  end
38
23
  end
@@ -0,0 +1,29 @@
1
+ class EnjuLeaf::SeedGenerator < Rails::Generators::Base
2
+ source_root File.expand_path('../templates', __FILE__)
3
+
4
+ def seed
5
+ environment = ENV['RAILS_ENV'] || 'development'
6
+ if !ENV['ENJU_SKIP_SOLR']
7
+ if ENV['OS'] == 'Windows_NT'
8
+ rake("sunspot:solr:run", env: environment)
9
+ else
10
+ rake("sunspot:solr:start", env: environment)
11
+ sleep 5
12
+ end
13
+ end
14
+
15
+ rake("db:migrate", env: environment)
16
+ rake("enju_leaf:setup", env: environment)
17
+ rake("enju_circulation:setup", env: environment)
18
+ rake("enju_subject:setup", env: environment)
19
+ rake("assets:precompile", env: environment) if environment == 'production'
20
+ rake("db:seed", env: environment)
21
+
22
+ if !ENV['ENJU_SKIP_SOLR']
23
+ rake("environment sunspot:reindex", env: environment)
24
+ rake("sunspot:solr:stop", env: environment)
25
+ end
26
+
27
+ rake("enju_leaf:load_asset_files")
28
+ end
29
+ end
@@ -3,7 +3,6 @@ class EnjuLeaf::SetupGenerator < Rails::Generators::Base
3
3
  desc "Create a setup file for Next-L Enju"
4
4
 
5
5
  def copy_setup_files
6
- directory("db/fixtures", "db/fixtures/enju_leaf")
7
6
  directory("solr", "example/solr")
8
7
  copy_file("Procfile", "Procfile")
9
8
  copy_file("config/schedule.rb", "config/schedule.rb")
@@ -12,9 +11,10 @@ class EnjuLeaf::SetupGenerator < Rails::Generators::Base
12
11
  <<"EOS"
13
12
  config.i18n.available_locales = [:en, :ja]
14
13
  config.i18n.enforce_available_locales = true
15
- config.active_job.queue_adapter = :resque
16
14
  config.i18n.default_locale = :ja
15
+ config.i18n.fallbacks = [I18n.default_locale]
17
16
  config.time_zone = 'Tokyo'
17
+ config.active_job.queue_adapter = :resque
18
18
  EOS
19
19
  end
20
20
  gsub_file 'config/schedule.rb', /\/path\/to\/enju_leaf/, Rails.root.to_s
@@ -31,9 +31,6 @@ EOS
31
31
  end
32
32
  inject_into_class "app/controllers/application_controller.rb", ApplicationController do
33
33
  <<"EOS"
34
- include EnjuLibrary::Controller
35
- include EnjuBiblio::Controller
36
-
37
34
  include Pundit
38
35
  before_action :set_paper_trail_whodunnit
39
36
  after_action :verify_authorized, unless: :devise_controller?
@@ -41,11 +38,6 @@ EOS
41
38
  end
42
39
  generate("devise:install")
43
40
  generate("devise", "User")
44
- gsub_file 'app/models/user.rb', /, :validatable$/, <<EOS
45
- , # :validatable,
46
- :lockable, lock_strategy: :none, unlock_strategy: :none
47
- include EnjuSeed::EnjuUser
48
- EOS
49
41
  generate("sunspot_rails:install")
50
42
  generate("kaminari:config")
51
43
  generate("simple_form:install")
@@ -99,7 +91,7 @@ EOS
99
91
  inject_into_file "app/assets/stylesheets/application.css", after: / *= require_self$\n/ do
100
92
  " *= require enju_leaf\n"
101
93
  end
102
- inject_into_file "config.ru", after: /require ::File.expand_path\(\'..\/config\/environment\', __FILE__\)$\n/ do
94
+ inject_into_file "config.ru", after: /require_relative 'config\/environment'$\n/ do
103
95
  <<"EOS"
104
96
  require 'rack/protection'
105
97
  use Rack::Protection, except: [:escaped_params, :json_csrf, :http_origin, :session_hijacking, :remote_token]
@@ -110,9 +102,16 @@ EOS
110
102
  gsub_file 'config/environments/production.rb',
111
103
  /config.serve_static_assets = false$/,
112
104
  "config.serve_static_assets = true"
113
- gsub_file 'config/environments/production.rb',
114
- /# config.cache_store = :mem_cache_store$/,
115
- "config.cache_store = :redis_store, ENV['REDIS_URL'], { expires_in: 1.day }"
105
+ if Rails::VERSION::STRING =~ /^5\.1/
106
+ gsub_file 'config/environments/production.rb',
107
+ /# config.cache_store = :mem_cache_store$/,
108
+ "config.cache_store = :redis_store, ENV['REDIS_URL'], { expires_in: 1.day }"
109
+ else
110
+ gsub_file 'config/environments/production.rb',
111
+ /# config.cache_store = :mem_cache_store$/,
112
+ "config.cache_store = :redis_cache_store, { url: ENV['REDIS_URL'], expires_in: 1.day }"
113
+ end
114
+
116
115
  gsub_file 'config/environments/production.rb',
117
116
  /# config.assets.precompile \+= %w\( search.js \)$/,
118
117
  "config.assets.precompile += %w( mobile.js mobile.css print.css )"
@@ -1,3 +1,3 @@
1
1
  solr: bundle exec rake sunspot:solr:run
2
2
  resque: bundle exec rake environment resque:work QUEUE=enju_leaf,mailers TERM_CHILD=1
3
- web: bundle exec rails s
3
+ web: bundle exec rails s -p 3000
@@ -1,8 +1,4 @@
1
- if Rails::VERSION::MAJOR >= 4
2
- username = 'enjuadmin'
3
- else
4
- username = 'admin'
5
- end
1
+ username = 'enjuadmin'
6
2
  email = 'admin@example.jp'
7
3
  password = 'adminpassword'
8
4
 
@@ -29,11 +25,16 @@ system_user = User.new
29
25
  system_user.username = 'system'
30
26
  system_user.password = SecureRandom.urlsafe_base64(32)
31
27
  system_user.email = 'root@library.example.jp'
32
- system_user.role = Role.where(name: 'Administrator').first
28
+ system_user.role = Role.find_by(name: 'Administrator')
29
+ profile = new_profile
30
+ profile.save!
31
+ system_user.profile = profile
33
32
  system_user.save!
34
- system_profile = new_profile
35
- system_profile.user = system_user
36
- system_profile.save!
33
+ LibraryGroup.first.update!(user: system_user)
34
+ UserGroup.order(created_at: :desc).first.update!(
35
+ number_of_day_to_notify_overdue: 7,
36
+ number_of_day_to_notify_due_date: 3
37
+ )
37
38
 
38
39
  user = User.new
39
40
  user.username = username
@@ -41,10 +42,10 @@ user.email = email
41
42
  user.password = password
42
43
  user.password_confirmation = password
43
44
  #user.confirm!
44
- user.role = Role.where(name: 'Administrator').first
45
- user.save!
45
+ user.role = Role.find_by(name: 'Administrator')
46
46
  profile = new_profile
47
47
  profile.user_number = '0'
48
- profile.user = user
49
48
  profile.save!
49
+ user.profile = profile
50
+ user.save!
50
51
  puts 'Administrator account created.'
@@ -8,6 +8,7 @@ namespace :enju_leaf do
8
8
  ActiveRecord::FixtureSet.create_fixtures('db/fixtures/enju_leaf', File.basename(file, '.*'))
9
9
  end
10
10
 
11
+ Rake::Task['enju_seed:setup'].invoke
11
12
  Rake::Task['enju_biblio:setup'].invoke
12
13
  Rake::Task['enju_library:setup'].invoke
13
14
 
@@ -43,7 +44,7 @@ namespace :enju_leaf do
43
44
  desc 'Load default asset files'
44
45
  task :load_asset_files => :environment do
45
46
  library_group = LibraryGroup.order(created_at: :desc).first
46
- unless library_group.header_logo.present?
47
+ if library_group.header_logo.blank?
47
48
  library_group.header_logo = File.open("#{File.dirname(__FILE__)}/../../app/assets/images/enju_leaf/enju-logo-yoko-without-white.png")
48
49
  library_group.save!
49
50
  end
@@ -0,0 +1,3 @@
1
+ class ApplicationRecord < ActiveRecord::Base
2
+ self.abstract_class = true
3
+ end
@@ -1,4 +1,4 @@
1
- class User < ActiveRecord::Base
1
+ class User < ApplicationRecord
2
2
  devise :database_authenticatable, #:registerable,
3
3
  :recoverable, :rememberable, :trackable, # , :validatable
4
4
  :lockable, lock_strategy: :none, unlock_strategy: :none
@@ -9,7 +9,7 @@ require "enju_manifestation_viewer"
9
9
  module Dummy
10
10
  class Application < Rails::Application
11
11
  # Initialize configuration defaults for originally generated Rails version.
12
- config.load_defaults 5.1
12
+ config.load_defaults 5.2
13
13
 
14
14
  # Settings in config/environments/* take precedence over those specified here.
15
15
  # Application configuration should go into files in config/initializers
@@ -172,51 +172,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
172
172
  t.index ["user_id"], name: "index_baskets_on_user_id"
173
173
  end
174
174
 
175
- create_table "bookmark_stat_has_manifestations", force: :cascade do |t|
176
- t.integer "bookmark_stat_id", null: false
177
- t.integer "manifestation_id", null: false
178
- t.integer "bookmarks_count"
179
- t.datetime "created_at"
180
- t.datetime "updated_at"
181
- t.index ["bookmark_stat_id"], name: "index_bookmark_stat_has_manifestations_on_bookmark_stat_id"
182
- t.index ["manifestation_id"], name: "index_bookmark_stat_has_manifestations_on_manifestation_id"
183
- end
184
-
185
- create_table "bookmark_stat_transitions", force: :cascade do |t|
186
- t.string "to_state"
187
- t.text "metadata", default: "{}"
188
- t.integer "sort_key"
189
- t.integer "bookmark_stat_id"
190
- t.datetime "created_at"
191
- t.datetime "updated_at"
192
- t.index ["bookmark_stat_id"], name: "index_bookmark_stat_transitions_on_bookmark_stat_id"
193
- t.index ["sort_key", "bookmark_stat_id"], name: "index_bookmark_stat_transitions_on_sort_key_and_stat_id", unique: true
194
- end
195
-
196
- create_table "bookmark_stats", force: :cascade do |t|
197
- t.datetime "start_date"
198
- t.datetime "end_date"
199
- t.datetime "started_at"
200
- t.datetime "completed_at"
201
- t.text "note"
202
- t.datetime "created_at"
203
- t.datetime "updated_at"
204
- end
205
-
206
- create_table "bookmarks", force: :cascade do |t|
207
- t.integer "user_id", null: false
208
- t.integer "manifestation_id"
209
- t.text "title"
210
- t.string "url"
211
- t.text "note"
212
- t.boolean "shared"
213
- t.datetime "created_at"
214
- t.datetime "updated_at"
215
- t.index ["manifestation_id"], name: "index_bookmarks_on_manifestation_id"
216
- t.index ["url"], name: "index_bookmarks_on_url"
217
- t.index ["user_id"], name: "index_bookmarks_on_user_id"
218
- end
219
-
220
175
  create_table "bookstores", force: :cascade do |t|
221
176
  t.text "name", null: false
222
177
  t.string "zip_code"
@@ -240,17 +195,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
240
195
  t.datetime "updated_at"
241
196
  end
242
197
 
243
- create_table "carrier_type_has_checkout_types", force: :cascade do |t|
244
- t.integer "carrier_type_id", null: false
245
- t.integer "checkout_type_id", null: false
246
- t.text "note"
247
- t.integer "position"
248
- t.datetime "created_at"
249
- t.datetime "updated_at"
250
- t.index ["carrier_type_id"], name: "index_carrier_type_has_checkout_types_on_m_form_id"
251
- t.index ["checkout_type_id"], name: "index_carrier_type_has_checkout_types_on_checkout_type_id"
252
- end
253
-
254
198
  create_table "carrier_types", force: :cascade do |t|
255
199
  t.string "name", null: false
256
200
  t.text "display_name"
@@ -258,86 +202,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
258
202
  t.integer "position"
259
203
  t.datetime "created_at"
260
204
  t.datetime "updated_at"
261
- t.string "attachment_file_name"
262
- t.string "attachment_content_type"
263
- t.integer "attachment_file_size"
264
- t.datetime "attachment_updated_at"
265
- end
266
-
267
- create_table "checked_items", force: :cascade do |t|
268
- t.integer "item_id", null: false
269
- t.integer "basket_id", null: false
270
- t.datetime "due_date", null: false
271
- t.datetime "created_at"
272
- t.datetime "updated_at"
273
- t.integer "librarian_id"
274
- t.index ["basket_id"], name: "index_checked_items_on_basket_id"
275
- t.index ["item_id"], name: "index_checked_items_on_item_id"
276
- end
277
-
278
- create_table "checkins", force: :cascade do |t|
279
- t.integer "item_id", null: false
280
- t.integer "librarian_id"
281
- t.integer "basket_id"
282
- t.datetime "created_at"
283
- t.datetime "updated_at"
284
- t.integer "lock_version", default: 0, null: false
285
- t.index ["basket_id"], name: "index_checkins_on_basket_id"
286
- t.index ["item_id"], name: "index_checkins_on_item_id"
287
- t.index ["librarian_id"], name: "index_checkins_on_librarian_id"
288
- end
289
-
290
- create_table "checkout_stat_has_manifestations", force: :cascade do |t|
291
- t.integer "manifestation_checkout_stat_id", null: false
292
- t.integer "manifestation_id", null: false
293
- t.integer "checkouts_count"
294
- t.datetime "created_at"
295
- t.datetime "updated_at"
296
- t.index ["manifestation_checkout_stat_id"], name: "index_checkout_stat_has_manifestations_on_checkout_stat_id"
297
- t.index ["manifestation_id"], name: "index_checkout_stat_has_manifestations_on_manifestation_id"
298
- end
299
-
300
- create_table "checkout_stat_has_users", force: :cascade do |t|
301
- t.integer "user_checkout_stat_id", null: false
302
- t.integer "user_id", null: false
303
- t.integer "checkouts_count", default: 0, null: false
304
- t.datetime "created_at"
305
- t.datetime "updated_at"
306
- t.index ["user_checkout_stat_id"], name: "index_checkout_stat_has_users_on_user_checkout_stat_id"
307
- t.index ["user_id"], name: "index_checkout_stat_has_users_on_user_id"
308
- end
309
-
310
- create_table "checkout_types", force: :cascade do |t|
311
- t.string "name", null: false
312
- t.text "display_name"
313
- t.text "note"
314
- t.integer "position"
315
- t.datetime "created_at"
316
- t.datetime "updated_at"
317
- t.index ["name"], name: "index_checkout_types_on_name"
318
- end
319
-
320
- create_table "checkouts", force: :cascade do |t|
321
- t.integer "user_id"
322
- t.integer "item_id", null: false
323
- t.integer "checkin_id"
324
- t.integer "librarian_id"
325
- t.integer "basket_id"
326
- t.datetime "due_date"
327
- t.integer "checkout_renewal_count", default: 0, null: false
328
- t.integer "lock_version", default: 0, null: false
329
- t.datetime "created_at"
330
- t.datetime "updated_at"
331
- t.integer "shelf_id"
332
- t.integer "library_id"
333
- t.index ["basket_id"], name: "index_checkouts_on_basket_id"
334
- t.index ["checkin_id"], name: "index_checkouts_on_checkin_id"
335
- t.index ["item_id", "basket_id"], name: "index_checkouts_on_item_id_and_basket_id", unique: true
336
- t.index ["item_id"], name: "index_checkouts_on_item_id"
337
- t.index ["librarian_id"], name: "index_checkouts_on_librarian_id"
338
- t.index ["library_id"], name: "index_checkouts_on_library_id"
339
- t.index ["shelf_id"], name: "index_checkouts_on_shelf_id"
340
- t.index ["user_id"], name: "index_checkouts_on_user_id"
341
205
  end
342
206
 
343
207
  create_table "circulation_statuses", force: :cascade do |t|
@@ -402,17 +266,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
402
266
  t.index ["work_id"], name: "index_creates_on_work_id"
403
267
  end
404
268
 
405
- create_table "demands", force: :cascade do |t|
406
- t.integer "user_id"
407
- t.integer "item_id"
408
- t.integer "message_id"
409
- t.datetime "created_at", null: false
410
- t.datetime "updated_at", null: false
411
- t.index ["item_id"], name: "index_demands_on_item_id"
412
- t.index ["message_id"], name: "index_demands_on_message_id"
413
- t.index ["user_id"], name: "index_demands_on_user_id"
414
- end
415
-
416
269
  create_table "donates", force: :cascade do |t|
417
270
  t.integer "agent_id", null: false
418
271
  t.integer "item_id", null: false
@@ -505,19 +358,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
505
358
  t.index ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
506
359
  end
507
360
 
508
- create_table "identities", force: :cascade do |t|
509
- t.string "name"
510
- t.string "email"
511
- t.string "password_digest"
512
- t.integer "profile_id"
513
- t.datetime "created_at", null: false
514
- t.datetime "updated_at", null: false
515
- t.string "provider"
516
- t.index ["email"], name: "index_identities_on_email"
517
- t.index ["name"], name: "index_identities_on_name"
518
- t.index ["profile_id"], name: "index_identities_on_profile_id"
519
- end
520
-
521
361
  create_table "import_request_transitions", force: :cascade do |t|
522
362
  t.string "to_state"
523
363
  t.text "metadata", default: "{}"
@@ -541,26 +381,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
541
381
  t.index ["user_id"], name: "index_import_requests_on_user_id"
542
382
  end
543
383
 
544
- create_table "item_has_use_restrictions", force: :cascade do |t|
545
- t.integer "item_id", null: false
546
- t.integer "use_restriction_id", null: false
547
- t.datetime "created_at"
548
- t.datetime "updated_at"
549
- t.index ["item_id"], name: "index_item_has_use_restrictions_on_item_id"
550
- t.index ["use_restriction_id"], name: "index_item_has_use_restrictions_on_use_restriction_id"
551
- end
552
-
553
- create_table "item_transitions", force: :cascade do |t|
554
- t.string "to_state"
555
- t.text "metadata", default: "{}"
556
- t.integer "sort_key"
557
- t.integer "item_id"
558
- t.datetime "created_at"
559
- t.datetime "updated_at"
560
- t.index ["item_id"], name: "index_item_transitions_on_item_id"
561
- t.index ["sort_key", "item_id"], name: "index_item_transitions_on_sort_key_and_item_id", unique: true
562
- end
563
-
564
384
  create_table "items", force: :cascade do |t|
565
385
  t.string "call_number"
566
386
  t.string "item_identifier"
@@ -578,16 +398,12 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
578
398
  t.datetime "acquired_at"
579
399
  t.integer "bookstore_id"
580
400
  t.integer "budget_type_id"
581
- t.integer "circulation_status_id", default: 5, null: false
582
- t.integer "checkout_type_id", default: 1, null: false
583
401
  t.string "binding_item_identifier"
584
402
  t.string "binding_call_number"
585
403
  t.datetime "binded_at"
586
404
  t.integer "manifestation_id", null: false
587
405
  t.index ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
588
406
  t.index ["bookstore_id"], name: "index_items_on_bookstore_id"
589
- t.index ["checkout_type_id"], name: "index_items_on_checkout_type_id"
590
- t.index ["circulation_status_id"], name: "index_items_on_circulation_status_id"
591
407
  t.index ["item_identifier"], name: "index_items_on_item_identifier"
592
408
  t.index ["manifestation_id"], name: "index_items_on_manifestation_id"
593
409
  t.index ["required_role_id"], name: "index_items_on_required_role_id"
@@ -609,20 +425,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
609
425
  t.index ["name"], name: "index_languages_on_name", unique: true
610
426
  end
611
427
 
612
- create_table "lending_policies", force: :cascade do |t|
613
- t.integer "item_id", null: false
614
- t.integer "user_group_id", null: false
615
- t.integer "loan_period", default: 0, null: false
616
- t.datetime "fixed_due_date"
617
- t.integer "renewal", default: 0, null: false
618
- t.integer "fine", default: 0, null: false
619
- t.text "note"
620
- t.integer "position"
621
- t.datetime "created_at"
622
- t.datetime "updated_at"
623
- t.index ["item_id", "user_group_id"], name: "index_lending_policies_on_item_id_and_user_group_id", unique: true
624
- end
625
-
626
428
  create_table "libraries", force: :cascade do |t|
627
429
  t.string "name", null: false
628
430
  t.text "display_name"
@@ -675,7 +477,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
675
477
  t.datetime "created_at"
676
478
  t.datetime "updated_at"
677
479
  t.text "admin_networks"
678
- t.boolean "allow_bookmark_external_url", default: false, null: false
679
480
  t.string "url", default: "http://localhost:3000/"
680
481
  t.text "settings"
681
482
  t.text "html_snippet"
@@ -686,10 +487,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
686
487
  t.integer "pub_year_facet_range_interval", default: 10
687
488
  t.integer "user_id"
688
489
  t.boolean "csv_charset_conversion", default: false, null: false
689
- t.string "header_logo_file_name"
690
- t.string "header_logo_content_type"
691
- t.integer "header_logo_file_size"
692
- t.datetime "header_logo_updated_at"
693
490
  t.text "header_logo_meta"
694
491
  t.index ["short_name"], name: "index_library_groups_on_short_name"
695
492
  t.index ["user_id"], name: "index_library_groups_on_user_id"
@@ -704,30 +501,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
704
501
  t.datetime "updated_at"
705
502
  end
706
503
 
707
- create_table "manifestation_checkout_stat_transitions", force: :cascade do |t|
708
- t.string "to_state"
709
- t.text "metadata", default: "{}"
710
- t.integer "sort_key"
711
- t.integer "manifestation_checkout_stat_id"
712
- t.datetime "created_at"
713
- t.datetime "updated_at"
714
- t.boolean "most_recent"
715
- t.index ["manifestation_checkout_stat_id"], name: "index_manifestation_checkout_stat_transitions_on_stat_id"
716
- t.index ["sort_key", "manifestation_checkout_stat_id"], name: "index_manifestation_checkout_stat_transitions_on_transition", unique: true
717
- end
718
-
719
- create_table "manifestation_checkout_stats", force: :cascade do |t|
720
- t.datetime "start_date"
721
- t.datetime "end_date"
722
- t.text "note"
723
- t.datetime "created_at"
724
- t.datetime "updated_at"
725
- t.datetime "started_at"
726
- t.datetime "completed_at"
727
- t.integer "user_id"
728
- t.index ["user_id"], name: "index_manifestation_checkout_stats_on_user_id"
729
- end
730
-
731
504
  create_table "manifestation_relationship_types", force: :cascade do |t|
732
505
  t.string "name", null: false
733
506
  t.text "display_name"
@@ -748,30 +521,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
748
521
  t.index ["parent_id"], name: "index_manifestation_relationships_on_parent_id"
749
522
  end
750
523
 
751
- create_table "manifestation_reserve_stat_transitions", force: :cascade do |t|
752
- t.string "to_state"
753
- t.text "metadata", default: "{}"
754
- t.integer "sort_key"
755
- t.integer "manifestation_reserve_stat_id"
756
- t.datetime "created_at"
757
- t.datetime "updated_at"
758
- t.boolean "most_recent"
759
- t.index ["manifestation_reserve_stat_id"], name: "index_manifestation_reserve_stat_transitions_on_stat_id"
760
- t.index ["sort_key", "manifestation_reserve_stat_id"], name: "index_manifestation_reserve_stat_transitions_on_transition", unique: true
761
- end
762
-
763
- create_table "manifestation_reserve_stats", force: :cascade do |t|
764
- t.datetime "start_date"
765
- t.datetime "end_date"
766
- t.text "note"
767
- t.datetime "created_at"
768
- t.datetime "updated_at"
769
- t.datetime "started_at"
770
- t.datetime "completed_at"
771
- t.integer "user_id"
772
- t.index ["user_id"], name: "index_manifestation_reserve_stats_on_user_id"
773
- end
774
-
775
524
  create_table "manifestations", force: :cascade do |t|
776
525
  t.text "original_title", null: false
777
526
  t.text "title_alternative"
@@ -804,10 +553,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
804
553
  t.integer "required_score", default: 0, null: false
805
554
  t.integer "frequency_id", default: 1, null: false
806
555
  t.boolean "subscription_master", default: false, null: false
807
- t.string "attachment_file_name"
808
- t.string "attachment_content_type"
809
- t.integer "attachment_file_size"
810
- t.datetime "attachment_updated_at"
811
556
  t.text "title_alternative_transcription"
812
557
  t.text "description"
813
558
  t.text "abstract"
@@ -824,10 +569,8 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
824
569
  t.string "ndc"
825
570
  t.integer "content_type_id", default: 1
826
571
  t.integer "year_of_publication"
827
- t.text "attachment_meta"
828
572
  t.integer "month_of_publication"
829
573
  t.boolean "fulltext_content"
830
- t.string "doi"
831
574
  t.boolean "serial"
832
575
  t.text "statement_of_responsibility"
833
576
  t.text "publication_place"
@@ -835,7 +578,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
835
578
  t.text "dimensions"
836
579
  t.index ["access_address"], name: "index_manifestations_on_access_address"
837
580
  t.index ["date_of_publication"], name: "index_manifestations_on_date_of_publication"
838
- t.index ["doi"], name: "index_manifestations_on_doi"
839
581
  t.index ["manifestation_identifier"], name: "index_manifestations_on_manifestation_identifier"
840
582
  t.index ["updated_at"], name: "index_manifestations_on_updated_at"
841
583
  end
@@ -975,14 +717,10 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
975
717
  t.integer "required_role_id"
976
718
  t.datetime "created_at"
977
719
  t.datetime "updated_at"
978
- t.string "checkout_icalendar_token"
979
- t.boolean "save_checkout_history", default: false, null: false
980
720
  t.datetime "expired_at"
981
721
  t.boolean "save_search_history"
982
- t.boolean "share_bookmarks"
983
722
  t.text "full_name_transcription"
984
723
  t.datetime "date_of_birth"
985
- t.index ["checkout_icalendar_token"], name: "index_profiles_on_checkout_icalendar_token", unique: true
986
724
  t.index ["user_id"], name: "index_profiles_on_user_id"
987
725
  t.index ["user_number"], name: "index_profiles_on_user_number", unique: true
988
726
  end
@@ -1025,62 +763,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
1025
763
  t.datetime "updated_at"
1026
764
  end
1027
765
 
1028
- create_table "reserve_stat_has_manifestations", force: :cascade do |t|
1029
- t.integer "manifestation_reserve_stat_id", null: false
1030
- t.integer "manifestation_id", null: false
1031
- t.integer "reserves_count"
1032
- t.datetime "created_at"
1033
- t.datetime "updated_at"
1034
- t.index ["manifestation_id"], name: "index_reserve_stat_has_manifestations_on_manifestation_id"
1035
- t.index ["manifestation_reserve_stat_id"], name: "index_reserve_stat_has_manifestations_on_m_reserve_stat_id"
1036
- end
1037
-
1038
- create_table "reserve_stat_has_users", force: :cascade do |t|
1039
- t.integer "user_reserve_stat_id", null: false
1040
- t.integer "user_id", null: false
1041
- t.integer "reserves_count"
1042
- t.datetime "created_at"
1043
- t.datetime "updated_at"
1044
- t.index ["user_id"], name: "index_reserve_stat_has_users_on_user_id"
1045
- t.index ["user_reserve_stat_id"], name: "index_reserve_stat_has_users_on_user_reserve_stat_id"
1046
- end
1047
-
1048
- create_table "reserve_transitions", force: :cascade do |t|
1049
- t.string "to_state"
1050
- t.text "metadata", default: "{}"
1051
- t.integer "sort_key"
1052
- t.integer "reserve_id"
1053
- t.datetime "created_at"
1054
- t.datetime "updated_at"
1055
- t.boolean "most_recent"
1056
- t.index ["reserve_id"], name: "index_reserve_transitions_on_reserve_id"
1057
- t.index ["sort_key", "reserve_id"], name: "index_reserve_transitions_on_sort_key_and_reserve_id", unique: true
1058
- end
1059
-
1060
- create_table "reserves", force: :cascade do |t|
1061
- t.integer "user_id", null: false
1062
- t.integer "manifestation_id", null: false
1063
- t.integer "item_id"
1064
- t.integer "request_status_type_id", null: false
1065
- t.datetime "checked_out_at"
1066
- t.datetime "created_at"
1067
- t.datetime "updated_at"
1068
- t.datetime "canceled_at"
1069
- t.datetime "expired_at"
1070
- t.datetime "deleted_at"
1071
- t.boolean "expiration_notice_to_patron", default: false
1072
- t.boolean "expiration_notice_to_library", default: false
1073
- t.integer "pickup_location_id"
1074
- t.datetime "retained_at"
1075
- t.datetime "postponed_at"
1076
- t.integer "lock_version", default: 0, null: false
1077
- t.index ["item_id"], name: "index_reserves_on_item_id"
1078
- t.index ["manifestation_id"], name: "index_reserves_on_manifestation_id"
1079
- t.index ["pickup_location_id"], name: "index_reserves_on_pickup_location_id"
1080
- t.index ["request_status_type_id"], name: "index_reserves_on_request_status_type_id"
1081
- t.index ["user_id"], name: "index_reserves_on_user_id"
1082
- end
1083
-
1084
766
  create_table "resource_export_file_transitions", force: :cascade do |t|
1085
767
  t.string "to_state"
1086
768
  t.text "metadata", default: "{}"
@@ -1244,7 +926,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
1244
926
  t.text "title_transcription"
1245
927
  t.text "title_alternative"
1246
928
  t.string "series_statement_identifier"
1247
- t.string "issn"
1248
929
  t.boolean "periodical"
1249
930
  t.integer "manifestation_id"
1250
931
  t.text "note"
@@ -1326,30 +1007,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
1326
1007
  t.datetime "updated_at"
1327
1008
  end
1328
1009
 
1329
- create_table "user_checkout_stat_transitions", force: :cascade do |t|
1330
- t.string "to_state"
1331
- t.text "metadata", default: "{}"
1332
- t.integer "sort_key"
1333
- t.integer "user_checkout_stat_id"
1334
- t.datetime "created_at"
1335
- t.datetime "updated_at"
1336
- t.boolean "most_recent"
1337
- t.index ["sort_key", "user_checkout_stat_id"], name: "index_user_checkout_stat_transitions_on_sort_key_and_stat_id", unique: true
1338
- t.index ["user_checkout_stat_id"], name: "index_user_checkout_stat_transitions_on_user_checkout_stat_id"
1339
- end
1340
-
1341
- create_table "user_checkout_stats", force: :cascade do |t|
1342
- t.datetime "start_date"
1343
- t.datetime "end_date"
1344
- t.text "note"
1345
- t.datetime "created_at"
1346
- t.datetime "updated_at"
1347
- t.datetime "started_at"
1348
- t.datetime "completed_at"
1349
- t.integer "user_id"
1350
- t.index ["user_id"], name: "index_user_checkout_stats_on_user_id"
1351
- end
1352
-
1353
1010
  create_table "user_export_file_transitions", force: :cascade do |t|
1354
1011
  t.string "to_state"
1355
1012
  t.text "metadata", default: "{}"
@@ -1375,25 +1032,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
1375
1032
  t.index ["user_id"], name: "index_user_export_files_on_user_id"
1376
1033
  end
1377
1034
 
1378
- create_table "user_group_has_checkout_types", force: :cascade do |t|
1379
- t.integer "user_group_id", null: false
1380
- t.integer "checkout_type_id", null: false
1381
- t.integer "checkout_limit", default: 0, null: false
1382
- t.integer "checkout_period", default: 0, null: false
1383
- t.integer "checkout_renewal_limit", default: 0, null: false
1384
- t.integer "reservation_limit", default: 0, null: false
1385
- t.integer "reservation_expired_period", default: 7, null: false
1386
- t.boolean "set_due_date_before_closing_day", default: false, null: false
1387
- t.datetime "fixed_due_date"
1388
- t.text "note"
1389
- t.integer "position"
1390
- t.datetime "created_at"
1391
- t.datetime "updated_at"
1392
- t.integer "current_checkout_count"
1393
- t.index ["checkout_type_id"], name: "index_user_group_has_checkout_types_on_checkout_type_id"
1394
- t.index ["user_group_id"], name: "index_user_group_has_checkout_types_on_user_group_id"
1395
- end
1396
-
1397
1035
  create_table "user_groups", force: :cascade do |t|
1398
1036
  t.string "name"
1399
1037
  t.text "display_name"
@@ -1460,30 +1098,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
1460
1098
  t.index ["user_import_file_id"], name: "index_user_import_results_on_user_import_file_id"
1461
1099
  end
1462
1100
 
1463
- create_table "user_reserve_stat_transitions", force: :cascade do |t|
1464
- t.string "to_state"
1465
- t.text "metadata", default: "{}"
1466
- t.integer "sort_key"
1467
- t.integer "user_reserve_stat_id"
1468
- t.datetime "created_at"
1469
- t.datetime "updated_at"
1470
- t.boolean "most_recent"
1471
- t.index ["sort_key", "user_reserve_stat_id"], name: "index_user_reserve_stat_transitions_on_sort_key_and_stat_id", unique: true
1472
- t.index ["user_reserve_stat_id"], name: "index_user_reserve_stat_transitions_on_user_reserve_stat_id"
1473
- end
1474
-
1475
- create_table "user_reserve_stats", force: :cascade do |t|
1476
- t.datetime "start_date"
1477
- t.datetime "end_date"
1478
- t.text "note"
1479
- t.datetime "created_at"
1480
- t.datetime "updated_at"
1481
- t.datetime "started_at"
1482
- t.datetime "completed_at"
1483
- t.integer "user_id"
1484
- t.index ["user_id"], name: "index_user_reserve_stats_on_user_id"
1485
- end
1486
-
1487
1101
  create_table "users", force: :cascade do |t|
1488
1102
  t.string "email", default: "", null: false
1489
1103
  t.string "encrypted_password", default: "", null: false
@@ -1497,9 +1111,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
1497
1111
  t.string "last_sign_in_ip"
1498
1112
  t.datetime "created_at"
1499
1113
  t.datetime "updated_at"
1500
- t.boolean "save_checkout_history", default: false, null: false
1501
- t.string "checkout_icalendar_token"
1502
- t.boolean "share_bookmarks"
1503
1114
  t.boolean "save_search_history", default: false, null: false
1504
1115
  t.string "username"
1505
1116
  t.datetime "deleted_at"
@@ -1508,7 +1119,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
1508
1119
  t.string "unlock_token"
1509
1120
  t.datetime "locked_at"
1510
1121
  t.datetime "confirmed_at"
1511
- t.index ["checkout_icalendar_token"], name: "index_users_on_checkout_icalendar_token", unique: true
1512
1122
  t.index ["email"], name: "index_users_on_email"
1513
1123
  t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
1514
1124
  t.index ["unlock_token"], name: "index_users_on_unlock_token", unique: true