enju_circulation 0.2.0.beta.2 → 0.2.0.beta.3

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 (88) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/checkout_type.rb +1 -1
  3. data/app/models/circulation_status.rb +1 -1
  4. data/app/models/demand.rb +12 -0
  5. data/app/models/manifestation_checkout_stat_transition.rb +3 -2
  6. data/app/models/manifestation_reserve_stat_transition.rb +3 -2
  7. data/app/models/reserve_transition.rb +8 -7
  8. data/app/models/use_restriction.rb +1 -1
  9. data/app/models/user_checkout_stat_transition.rb +3 -2
  10. data/app/models/user_reserve_stat_transition.rb +3 -2
  11. data/lib/enju_circulation/version.rb +1 -1
  12. data/lib/generators/enju_circulation/setup/setup_generator.rb +1 -1
  13. data/lib/tasks/enju_circulation_tasks.rake +5 -5
  14. data/spec/controllers/carrier_type_has_checkout_types_controller_spec.rb +1 -1
  15. data/spec/controllers/checked_items_controller_spec.rb +1 -1
  16. data/spec/controllers/checkins_controller_spec.rb +1 -1
  17. data/spec/controllers/checkout_types_controller_spec.rb +1 -1
  18. data/spec/controllers/checkouts_controller_spec.rb +1 -1
  19. data/spec/controllers/circulation_statuses_controller_spec.rb +1 -1
  20. data/spec/controllers/item_has_use_restrictions_controller_spec.rb +1 -1
  21. data/spec/controllers/lending_policies_controller_spec.rb +1 -1
  22. data/spec/controllers/manifestation_checkout_stats_controller_spec.rb +1 -1
  23. data/spec/controllers/manifestation_reserve_stats_controller_spec.rb +1 -1
  24. data/spec/controllers/profiles_controller_spec.rb +16 -0
  25. data/spec/controllers/reserves_controller_spec.rb +1 -1
  26. data/spec/controllers/use_restrictions_controller_spec.rb +1 -1
  27. data/spec/controllers/user_checkout_stats_controller_spec.rb +1 -1
  28. data/spec/controllers/user_group_has_checkout_types_controller_spec.rb +1 -1
  29. data/spec/controllers/user_reserve_stats_controller_spec.rb +1 -1
  30. data/spec/dummy/app/models/user.rb +8 -1
  31. data/spec/dummy/config/application.rb +3 -1
  32. data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +1 -1
  33. data/spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb +5 -0
  34. data/spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb +5 -0
  35. data/spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb +9 -0
  36. data/spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb +9 -0
  37. data/spec/dummy/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb +5 -0
  38. data/spec/dummy/db/migrate/20160813191733_add_family_name_first_to_library_group.rb +5 -0
  39. data/spec/dummy/db/migrate/20160813192542_add_pub_year_facet_range_interval_to_library_group.rb +5 -0
  40. data/spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb +5 -0
  41. data/spec/dummy/db/migrate/20160814165332_add_most_recent_to_message_request_transitions.rb +9 -0
  42. data/spec/dummy/db/schema.rb +15 -5
  43. data/spec/fixtures/checkout_types.yml +1 -1
  44. data/spec/fixtures/circulation_statuses.yml +1 -1
  45. data/spec/fixtures/demands.yml +12 -0
  46. data/spec/fixtures/library_groups.yml +1 -6
  47. data/spec/fixtures/reserve_transitions.yml +8 -7
  48. data/spec/fixtures/use_restrictions.yml +1 -1
  49. data/spec/models/basket_spec.rb +1 -2
  50. data/spec/models/carrier_type_has_checkout_type_spec.rb +1 -2
  51. data/spec/models/checked_item_spec.rb +1 -2
  52. data/spec/models/checkin_spec.rb +1 -2
  53. data/spec/models/checkout_spec.rb +1 -2
  54. data/spec/models/checkout_stat_has_manifestation_spec.rb +1 -2
  55. data/spec/models/checkout_stat_has_user_spec.rb +1 -2
  56. data/spec/models/checkout_type_spec.rb +2 -3
  57. data/spec/models/circulation_status_spec.rb +2 -3
  58. data/spec/models/item_has_use_resetriction_spec.rb +1 -2
  59. data/spec/models/lending_policy_spec.rb +1 -2
  60. data/spec/models/manifestation_checkout_stat_spec.rb +1 -2
  61. data/spec/models/manifestation_reserve_stat_spec.rb +1 -2
  62. data/spec/models/reserve_spec.rb +1 -2
  63. data/spec/models/reserve_stat_has_manifestation_spec.rb +1 -2
  64. data/spec/models/reserve_stat_has_user_spec.rb +1 -2
  65. data/spec/models/use_resetriction_spec.rb +1 -2
  66. data/spec/models/user_checkout_stat_spec.rb +1 -2
  67. data/spec/models/user_group_has_checkout_type_spec.rb +1 -2
  68. data/spec/models/user_reserve_stat_spec.rb +1 -2
  69. data/spec/models/user_spec.rb +67 -0
  70. data/spec/rails_helper.rb +54 -0
  71. data/spec/routing/checked_items_routing_spec.rb +1 -1
  72. data/spec/spec_helper.rb +82 -44
  73. data/spec/views/checkout_types/edit.html.erb_spec.rb +1 -1
  74. data/spec/views/checkout_types/index.html.erb_spec.rb +1 -1
  75. data/spec/views/checkout_types/new.html.erb_spec.rb +1 -1
  76. data/spec/views/checkout_types/show.html.erb_spec.rb +1 -1
  77. data/spec/views/checkouts/edit.html.erb_spec.rb +1 -1
  78. data/spec/views/checkouts/index.html.erb_spec.rb +1 -1
  79. data/spec/views/checkouts/show.html.erb_spec.rb +1 -1
  80. data/spec/views/my_accounts/show.html.erb_spec.rb +43 -0
  81. data/spec/views/profiles/show.html.erb_spec.rb +1 -1
  82. data/spec/views/reserves/index.html.erb_spec.rb +1 -1
  83. data/spec/views/use_restrictions/edit.html.erb_spec.rb +1 -1
  84. data/spec/views/use_restrictions/index.html.erb_spec.rb +1 -1
  85. data/spec/views/use_restrictions/new.html.erb_spec.rb +1 -1
  86. data/spec/views/use_restrictions/show.html.erb_spec.rb +1 -1
  87. metadata +76 -10
  88. data/spec/dummy/config/initializers/enju_leaf.rb +0 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb81a7452f8b4d3017732b57a7a802c7ba0e6ffd
4
- data.tar.gz: 57749c399e58ad00e38067f4bfa0ff9798d4a2e0
3
+ metadata.gz: 8d1d84454c986115d3db9e73886c0abfca5f76df
4
+ data.tar.gz: 3fbd2b6d37dabd55eee9c0e5c7ec2d48aceef3c7
5
5
  SHA512:
6
- metadata.gz: 808f55934861c02b251a87902256eb672132673c6d408f8d1e1bbcc425215eee041a044e0b85779a958603d366fb8551a6d6414d1cc05281279baa25294b2576
7
- data.tar.gz: b20e422fdfaee111343e7ea781b55d5144536ad9c8bd39c68336247efc230bb619d417985ba34587bed626330961e92e55514cdb33f7dd2f840c6607b1c10242
6
+ metadata.gz: 4990f4b9e09874aa760dbfbee3315ab1899b1b10238d2e862e6d64b7185fa2d0eced8f381b1bccd3b2abfdedc54b6b65ad1fb43c315a05341280dc31a89d978c
7
+ data.tar.gz: 6e467c07538e1332b66ac99b6ad846bd5e74cb9aa62618b7e02e0a90f550dc20afba6d6deb4daa19f196c55edab7094da42db44e81f37e2ebebc0bc35293fb82
@@ -19,7 +19,7 @@ end
19
19
  # Table name: checkout_types
20
20
  #
21
21
  # id :integer not null, primary key
22
- # name :string(255) not null
22
+ # name :string not null
23
23
  # display_name :text
24
24
  # note :text
25
25
  # position :integer
@@ -17,7 +17,7 @@ end
17
17
  # Table name: circulation_statuses
18
18
  #
19
19
  # id :integer not null, primary key
20
- # name :string(255) not null
20
+ # name :string not null
21
21
  # display_name :text
22
22
  # note :text
23
23
  # position :integer
data/app/models/demand.rb CHANGED
@@ -3,3 +3,15 @@ class Demand < ActiveRecord::Base
3
3
  belongs_to :item
4
4
  belongs_to :message
5
5
  end
6
+
7
+ # == Schema Information
8
+ #
9
+ # Table name: demands
10
+ #
11
+ # id :integer not null, primary key
12
+ # user_id :integer
13
+ # item_id :integer
14
+ # message_id :integer
15
+ # created_at :datetime not null
16
+ # updated_at :datetime not null
17
+ #
@@ -11,10 +11,11 @@ end
11
11
  # Table name: manifestation_checkout_stat_transitions
12
12
  #
13
13
  # id :integer not null, primary key
14
- # to_state :string(255)
15
- # metadata :text default("{}")
14
+ # to_state :string
15
+ # metadata :text default({})
16
16
  # sort_key :integer
17
17
  # manifestation_checkout_stat_id :integer
18
18
  # created_at :datetime
19
19
  # updated_at :datetime
20
+ # most_recent :boolean
20
21
  #
@@ -11,10 +11,11 @@ end
11
11
  # Table name: manifestation_reserve_stat_transitions
12
12
  #
13
13
  # id :integer not null, primary key
14
- # to_state :string(255)
15
- # metadata :text default("{}")
14
+ # to_state :string
15
+ # metadata :text default({})
16
16
  # sort_key :integer
17
17
  # manifestation_reserve_stat_id :integer
18
18
  # created_at :datetime
19
19
  # updated_at :datetime
20
+ # most_recent :boolean
20
21
  #
@@ -10,11 +10,12 @@ end
10
10
  #
11
11
  # Table name: reserve_transitions
12
12
  #
13
- # id :integer not null, primary key
14
- # to_state :string(255)
15
- # metadata :text default("{}")
16
- # sort_key :integer
17
- # reserve_id :integer
18
- # created_at :datetime
19
- # updated_at :datetime
13
+ # id :integer not null, primary key
14
+ # to_state :string
15
+ # metadata :text default({})
16
+ # sort_key :integer
17
+ # reserve_id :integer
18
+ # created_at :datetime
19
+ # updated_at :datetime
20
+ # most_recent :boolean
20
21
  #
@@ -17,7 +17,7 @@ end
17
17
  # Table name: use_restrictions
18
18
  #
19
19
  # id :integer not null, primary key
20
- # name :string(255) not null
20
+ # name :string not null
21
21
  # display_name :text
22
22
  # note :text
23
23
  # position :integer
@@ -11,10 +11,11 @@ end
11
11
  # Table name: user_checkout_stat_transitions
12
12
  #
13
13
  # id :integer not null, primary key
14
- # to_state :string(255)
15
- # metadata :text default("{}")
14
+ # to_state :string
15
+ # metadata :text default({})
16
16
  # sort_key :integer
17
17
  # user_checkout_stat_id :integer
18
18
  # created_at :datetime
19
19
  # updated_at :datetime
20
+ # most_recent :boolean
20
21
  #
@@ -11,10 +11,11 @@ end
11
11
  # Table name: user_reserve_stat_transitions
12
12
  #
13
13
  # id :integer not null, primary key
14
- # to_state :string(255)
15
- # metadata :text default("{}")
14
+ # to_state :string
15
+ # metadata :text default({})
16
16
  # sort_key :integer
17
17
  # user_reserve_stat_id :integer
18
18
  # created_at :datetime
19
19
  # updated_at :datetime
20
+ # most_recent :boolean
20
21
  #
@@ -1,3 +1,3 @@
1
1
  module EnjuCirculation
2
- VERSION = "0.2.0.beta.2"
2
+ VERSION = "0.2.0.beta.3"
3
3
  end
@@ -16,7 +16,7 @@ class EnjuCirculation::SetupGenerator < Rails::Generators::Base
16
16
  inject_into_class 'app/models/user.rb', User do
17
17
  " include EnjuCirculation::EnjuUser\n"
18
18
  end
19
- append_to_file "config/initializers/enju_leaf.rb", <<EOS
19
+ append_to_file "app/models/user.rb", <<EOS
20
20
  Accept.include(EnjuCirculation::EnjuAccept)
21
21
  Basket.include(EnjuCirculation::EnjuBasket)
22
22
  CarrierType.include(EnjuCirculation::EnjuCarrierType)
@@ -39,11 +39,11 @@ namespace :enju_circulation do
39
39
 
40
40
  desc "upgrade enju_circulation"
41
41
  task :upgrade => :environment do
42
- Reserve.transaction do
43
- update_reserve
44
- update_circulation_status
45
- update_use_restriction
46
- end
42
+ Rake::Task['statesman:backfill_most_recent'].invoke('ManifestationCheckoutStat')
43
+ Rake::Task['statesman:backfill_most_recent'].invoke('ManifestationReserveStat')
44
+ Rake::Task['statesman:backfill_most_recent'].invoke('UserCheckoutStat')
45
+ Rake::Task['statesman:backfill_most_recent'].invoke('UserCheckoutStat')
46
+ Rake::Task['statesman:backfill_most_recent'].invoke('Reserve')
47
47
  puts 'enju_circulation: The upgrade completed successfully.'
48
48
  end
49
49
 
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  describe CarrierTypeHasCheckoutTypesController do
4
4
  fixtures :all
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  describe CheckedItemsController do
4
4
  fixtures :all
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  describe CheckinsController do
4
4
  fixtures :all
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  describe CheckoutTypesController do
4
4
  fixtures :all
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  describe CheckoutsController do
4
4
  fixtures :all
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
  require 'sunspot/rails/spec_helper'
3
3
 
4
4
  describe CirculationStatusesController do
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
  require 'sunspot/rails/spec_helper'
3
3
 
4
4
  describe ItemHasUseRestrictionsController do
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
  require 'sunspot/rails/spec_helper'
3
3
 
4
4
  describe LendingPoliciesController do
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  describe ManifestationCheckoutStatsController do
4
4
  fixtures :all
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  describe ManifestationReserveStatsController do
4
4
  fixtures :all
@@ -0,0 +1,16 @@
1
+ require 'rails_helper'
2
+
3
+ describe ProfilesController do
4
+ fixtures :all
5
+
6
+ describe "GET show" do
7
+ describe "When logged in as User" do
8
+ login_fixture_user
9
+
10
+ it "should show icalendar feed" do
11
+ get :edit, id: profiles(:profile_user1).id, mode: 'feed_token'
12
+ response.should render_template("profiles/_feed_token")
13
+ end
14
+ end
15
+ end
16
+ end
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  describe ReservesController do
4
4
  fixtures :all
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
  require 'sunspot/rails/spec_helper'
3
3
 
4
4
  describe UseRestrictionsController do
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  describe UserCheckoutStatsController do
4
4
  fixtures :all
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  describe UserGroupHasCheckoutTypesController do
4
4
  fixtures :all
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  describe UserReserveStatsController do
4
4
  fixtures :all
@@ -4,7 +4,14 @@ class User < ActiveRecord::Base
4
4
  devise :database_authenticatable, #:registerable,
5
5
  :recoverable, :rememberable, :trackable, :validatable
6
6
 
7
- include EnjuLeaf::EnjuUser
7
+ include EnjuSeed::EnjuUser
8
8
  include EnjuMessage::EnjuUser
9
9
  include EnjuCirculation::EnjuUser
10
10
  end
11
+
12
+ Basket.include(EnjuCirculation::EnjuBasket)
13
+ Manifestation.include(EnjuCirculation::EnjuManifestation)
14
+ Item.include(EnjuCirculation::EnjuItem)
15
+ Profile.include(EnjuCirculation::EnjuProfile)
16
+ Item.include(EnjuLibrary::EnjuItem)
17
+ UserGroup.include(EnjuCirculation::EnjuUserGroup)
@@ -3,8 +3,10 @@ require File.expand_path('../boot', __FILE__)
3
3
  require 'rails/all'
4
4
 
5
5
  Bundler.require(*Rails.groups)
6
- require 'enju_leaf'
7
6
  require 'enju_circulation'
7
+ require 'enju_leaf'
8
+ require 'globalize'
9
+ require 'globalize-accessors'
8
10
  require 'resque/server'
9
11
 
10
12
  module Dummy
@@ -6,7 +6,7 @@ class CreateUserImportFiles < ActiveRecord::Migration
6
6
  t.datetime :executed_at
7
7
  t.string :user_import_file_name
8
8
  t.string :user_import_content_type
9
- t.string :user_import_file_size
9
+ t.integer :user_import_file_size
10
10
  t.datetime :user_import_updated_at
11
11
  t.string :user_import_fingerprint
12
12
  t.string :edit_mode
@@ -0,0 +1,5 @@
1
+ class AddErrorMessageToUserImportResult < ActiveRecord::Migration
2
+ def change
3
+ add_column :user_import_results, :error_message, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddHtmlSnippetToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :html_snippet, :text
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToUserImportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :user_import_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :user_import_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToUserExportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :user_export_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :user_export_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ class AddMaxNumberOfResultsToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :max_number_of_results, :integer, default: 500
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddFamilyNameFirstToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :family_name_first, :boolean, default: true
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddPubYearFacetRangeIntervalToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :pub_year_facet_range_interval, :integer, default: 10
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddUserIdToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_reference :library_groups, :user, index: true, foreign_key: true
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToMessageRequestTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :message_request_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :message_request_transitions, :most_recent
8
+ end
9
+ end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20160703190209) do
14
+ ActiveRecord::Schema.define(version: 20160814165332) do
15
15
 
16
16
  create_table "accepts", force: :cascade do |t|
17
17
  t.integer "basket_id"
@@ -675,9 +675,9 @@ ActiveRecord::Schema.define(version: 20160703190209) do
675
675
  add_index "library_group_translations", ["locale"], name: "index_library_group_translations_on_locale"
676
676
 
677
677
  create_table "library_groups", force: :cascade do |t|
678
- t.string "name", null: false
678
+ t.string "name", null: false
679
679
  t.text "display_name"
680
- t.string "short_name", null: false
680
+ t.string "short_name", null: false
681
681
  t.text "my_networks"
682
682
  t.text "login_banner"
683
683
  t.text "note"
@@ -686,11 +686,17 @@ ActiveRecord::Schema.define(version: 20160703190209) do
686
686
  t.datetime "created_at"
687
687
  t.datetime "updated_at"
688
688
  t.text "admin_networks"
689
- t.string "url", default: "http://localhost:3000/"
689
+ t.string "url", default: "http://localhost:3000/"
690
690
  t.text "settings"
691
+ t.text "html_snippet"
692
+ t.integer "max_number_of_results", default: 500
693
+ t.boolean "family_name_first", default: true
694
+ t.integer "pub_year_facet_range_interval", default: 10
695
+ t.integer "user_id"
691
696
  end
692
697
 
693
698
  add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
699
+ add_index "library_groups", ["user_id"], name: "index_library_groups_on_user_id"
694
700
 
695
701
  create_table "licenses", force: :cascade do |t|
696
702
  t.string "name", null: false
@@ -856,6 +862,7 @@ ActiveRecord::Schema.define(version: 20160703190209) do
856
862
  t.integer "message_request_id"
857
863
  t.datetime "created_at"
858
864
  t.datetime "updated_at"
865
+ t.boolean "most_recent"
859
866
  end
860
867
 
861
868
  add_index "message_request_transitions", ["message_request_id"], name: "index_message_request_transitions_on_message_request_id"
@@ -1321,6 +1328,7 @@ ActiveRecord::Schema.define(version: 20160703190209) do
1321
1328
  t.integer "user_export_file_id"
1322
1329
  t.datetime "created_at"
1323
1330
  t.datetime "updated_at"
1331
+ t.boolean "most_recent"
1324
1332
  end
1325
1333
 
1326
1334
  add_index "user_export_file_transitions", ["sort_key", "user_export_file_id"], name: "index_user_export_file_transitions_on_sort_key_and_file_id", unique: true
@@ -1389,6 +1397,7 @@ ActiveRecord::Schema.define(version: 20160703190209) do
1389
1397
  t.integer "user_import_file_id"
1390
1398
  t.datetime "created_at"
1391
1399
  t.datetime "updated_at"
1400
+ t.boolean "most_recent"
1392
1401
  end
1393
1402
 
1394
1403
  add_index "user_import_file_transitions", ["sort_key", "user_import_file_id"], name: "index_user_import_file_transitions_on_sort_key_and_file_id", unique: true
@@ -1400,7 +1409,7 @@ ActiveRecord::Schema.define(version: 20160703190209) do
1400
1409
  t.datetime "executed_at"
1401
1410
  t.string "user_import_file_name"
1402
1411
  t.string "user_import_content_type"
1403
- t.string "user_import_file_size"
1412
+ t.integer "user_import_file_size"
1404
1413
  t.datetime "user_import_updated_at"
1405
1414
  t.string "user_import_fingerprint"
1406
1415
  t.string "edit_mode"
@@ -1418,6 +1427,7 @@ ActiveRecord::Schema.define(version: 20160703190209) do
1418
1427
  t.text "body"
1419
1428
  t.datetime "created_at"
1420
1429
  t.datetime "updated_at"
1430
+ t.text "error_message"
1421
1431
  end
1422
1432
 
1423
1433
  create_table "user_reserve_stat_transitions", force: :cascade do |t|
@@ -24,7 +24,7 @@ checkout_type_00003:
24
24
  # Table name: checkout_types
25
25
  #
26
26
  # id :integer not null, primary key
27
- # name :string(255) not null
27
+ # name :string not null
28
28
  # display_name :text
29
29
  # note :text
30
30
  # position :integer
@@ -110,7 +110,7 @@ circulation_status_00016:
110
110
  # Table name: circulation_statuses
111
111
  #
112
112
  # id :integer not null, primary key
113
- # name :string(255) not null
113
+ # name :string not null
114
114
  # display_name :text
115
115
  # note :text
116
116
  # position :integer
@@ -9,3 +9,15 @@ two:
9
9
  user_id: 1
10
10
  item_id: 1
11
11
  message_id: 1
12
+
13
+ # == Schema Information
14
+ #
15
+ # Table name: demands
16
+ #
17
+ # id :integer not null, primary key
18
+ # user_id :integer
19
+ # item_id :integer
20
+ # message_id :integer
21
+ # created_at :datetime not null
22
+ # updated_at :datetime not null
23
+ #
@@ -7,12 +7,7 @@ one:
7
7
  note:
8
8
  my_networks: 0.0.0.0/0
9
9
  url: "http://localhost:3000/"
10
- settings: <% if Rails::VERSION::MAJOR > 3 %>
11
- "{\"max_number_of_results\":200,\"family_name_first\":true,\"book_jacket_source\":\"google\",\"screenshot_generator\":\"mozshot\"}"
12
- <% else %>
13
- "---\n:max_number_of_results: 200\n:family_name_first: true\n:book_jacket_source: \"google\"\n:screenshot_generator: \"mozshot\""
14
- <% end %>
15
-
10
+ user_id: 1
16
11
 
17
12
  # == Schema Information
18
13
  #
@@ -78,11 +78,12 @@ reserve_transition_00015:
78
78
  #
79
79
  # Table name: reserve_transitions
80
80
  #
81
- # id :integer not null, primary key
82
- # to_state :string(255)
83
- # metadata :text default("{}")
84
- # sort_key :integer
85
- # reserve_id :integer
86
- # created_at :datetime
87
- # updated_at :datetime
81
+ # id :integer not null, primary key
82
+ # to_state :string
83
+ # metadata :text default({})
84
+ # sort_key :integer
85
+ # reserve_id :integer
86
+ # created_at :datetime
87
+ # updated_at :datetime
88
+ # most_recent :boolean
88
89
  #
@@ -83,7 +83,7 @@ use_restriction_00013:
83
83
  # Table name: use_restrictions
84
84
  #
85
85
  # id :integer not null, primary key
86
- # name :string(255) not null
86
+ # name :string not null
87
87
  # display_name :text
88
88
  # note :text
89
89
  # position :integer
@@ -1,5 +1,4 @@
1
- # -*- encoding: utf-8 -*-
2
- require 'spec_helper'
1
+ require 'rails_helper'
3
2
 
4
3
  describe Basket do
5
4
  fixtures :all
@@ -1,5 +1,4 @@
1
- # -*- encoding: utf-8 -*-
2
- require 'spec_helper'
1
+ require 'rails_helper'
3
2
 
4
3
  describe CarrierTypeHasCheckoutType do
5
4
  #pending "add some examples to (or delete) #{__FILE__}"
@@ -1,5 +1,4 @@
1
- # -*- encoding: utf-8 -*-
2
- require 'spec_helper'
1
+ require 'rails_helper'
3
2
 
4
3
  describe CheckedItem do
5
4
  fixtures :all
@@ -1,5 +1,4 @@
1
- # -*- encoding: utf-8 -*-
2
- require 'spec_helper'
1
+ require 'rails_helper'
3
2
 
4
3
  describe Checkin do
5
4
  fixtures :all
@@ -1,5 +1,4 @@
1
- # -*- encoding: utf-8 -*-
2
- require 'spec_helper'
1
+ require 'rails_helper'
3
2
 
4
3
  describe Checkout do
5
4
  #pending "add some examples to (or delete) #{__FILE__}"
@@ -1,5 +1,4 @@
1
- # -*- encoding: utf-8 -*-
2
- require 'spec_helper'
1
+ require 'rails_helper'
3
2
 
4
3
  describe CheckoutStatHasManifestation do
5
4
  #pending "add some examples to (or delete) #{__FILE__}"
@@ -1,5 +1,4 @@
1
- # -*- encoding: utf-8 -*-
2
- require 'spec_helper'
1
+ require 'rails_helper'
3
2
 
4
3
  describe CheckoutStatHasUser do
5
4
  #pending "add some examples to (or delete) #{__FILE__}"