enju_event 0.1.17.pre23 → 0.1.17.pre24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +8 -1
  3. data/app/controllers/event_categories_controller.rb +7 -2
  4. data/app/controllers/event_export_files_controller.rb +7 -2
  5. data/app/controllers/event_import_files_controller.rb +12 -4
  6. data/app/controllers/event_import_results_controller.rb +7 -0
  7. data/app/controllers/events_controller.rb +9 -3
  8. data/app/controllers/participates_controller.rb +7 -2
  9. data/app/models/event.rb +0 -3
  10. data/app/models/event_category.rb +0 -1
  11. data/app/models/event_export_file.rb +13 -3
  12. data/app/models/event_export_file_transition.rb +1 -1
  13. data/app/models/event_import_file.rb +8 -6
  14. data/app/models/event_import_file_transition.rb +1 -1
  15. data/app/models/event_import_result.rb +0 -1
  16. data/app/models/participate.rb +0 -1
  17. data/app/views/event_export_files/index.html.erb +2 -2
  18. data/app/views/event_export_files/show.html.erb +1 -1
  19. data/app/views/event_import_files/index.html.erb +1 -1
  20. data/app/views/event_import_files/show.html.erb +1 -1
  21. data/db/migrate/20140523171309_create_event_import_file_transitions.rb +5 -1
  22. data/db/migrate/20140812153137_create_event_export_file_transitions.rb +5 -1
  23. data/lib/enju_event/engine.rb +0 -2
  24. data/lib/enju_event/version.rb +1 -1
  25. data/spec/controllers/event_export_files_controller_spec.rb +5 -5
  26. data/spec/controllers/event_import_files_controller_spec.rb +1 -1
  27. data/spec/dummy/app/models/user.rb +0 -1
  28. data/spec/dummy/bin/bundle +3 -0
  29. data/spec/dummy/bin/rails +4 -0
  30. data/spec/dummy/bin/rake +4 -0
  31. data/spec/dummy/bin/setup +29 -0
  32. data/spec/dummy/config/database.yml +23 -18
  33. data/spec/dummy/config/environments/test.rb +1 -1
  34. data/spec/dummy/db/migrate/035_create_reserves.rb +0 -1
  35. data/spec/dummy/db/migrate/133_create_agent_merges.rb +15 -0
  36. data/spec/dummy/db/migrate/134_create_agent_merge_lists.rb +13 -0
  37. data/spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb +18 -0
  38. data/spec/dummy/db/migrate/20140518111006_create_message_transitions.rb +5 -1
  39. data/spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb +5 -1
  40. data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +5 -1
  41. data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +5 -1
  42. data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +5 -1
  43. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +5 -1
  44. data/spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb +5 -1
  45. data/spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb +5 -1
  46. data/spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb +5 -1
  47. data/spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb +5 -1
  48. data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +5 -1
  49. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +5 -1
  50. data/spec/dummy/db/migrate/{20140810061942_add_user_id_to_stat.rb → 20140810061942_add_user_id_to_user_checkout_stat.rb} +1 -1
  51. data/spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb +5 -0
  52. data/spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb +5 -0
  53. data/spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb +6 -0
  54. data/spec/dummy/db/schema.rb +645 -615
  55. data/spec/fixtures/events.yml +20 -45
  56. data/spec/fixtures/users.yml +1 -1
  57. data/spec/spec_helper.rb +2 -0
  58. metadata +57 -212
  59. data/app/controllers/calendar_controller.rb +0 -35
  60. data/spec/dummy/db/development.sqlite3 +0 -0
  61. data/spec/dummy/db/migrate/20130303104849_add_state_index_to_reserve.rb +0 -5
  62. data/spec/dummy/db/test.sqlite3 +0 -0
  63. data/spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_destroy_file.tsv +0 -4
  64. data/spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_import51.txt +0 -3
  65. data/spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_import_file_sample1.tsv +0 -7
  66. data/spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_import_file_sample2.tsv +0 -7
  67. data/spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_update_file.tsv +0 -4
  68. data/spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/invalid_file.tsv +0 -3
  69. data/spec/dummy/public/system/event_export_files/event_exports/000/000/004/original/event_export_file_20140818-66894-1um2gwb.txt +0 -9
  70. data/spec/dummy/public/system/event_export_files/event_exports/000/000/004/original/event_export_file_20140818-67059-j0f46.txt +0 -9
  71. data/spec/dummy/public/system/event_export_files/event_exports/000/000/004/original/event_export_file_20140915-67461-178vmkf.txt +0 -9
  72. data/spec/dummy/public/system/event_export_files/event_exports/000/000/004/original/event_export_file_20140916-27270-1dm2llo.txt +0 -9
  73. data/spec/dummy/public/system/event_export_files/event_exports/000/000/004/original/event_export_file_20140921-56213-1l5hypx.txt +0 -9
  74. data/spec/dummy/public/system/event_export_files/event_exports/000/000/004/original/event_export_file_20140921-58265-o3c737.txt +0 -9
  75. data/spec/dummy/public/system/event_export_files/event_exports/000/000/004/original/event_export_file_20140921-58363-1tipiu.txt +0 -9
  76. data/spec/dummy/public/system/event_export_files/event_exports/000/000/004/original/event_export_file_20140921-58460-38jub0.txt +0 -9
  77. data/spec/dummy/public/system/event_export_files/event_exports/000/000/004/original/event_export_file_20140921-58528-ca3k3q.txt +0 -9
  78. data/spec/dummy/public/system/event_export_files/event_exports/000/000/004/original/event_export_file_20140921-58630-1m4isxz.txt +0 -9
  79. data/spec/dummy/public/system/event_export_files/event_exports/000/000/004/original/event_export_file_20140921-58934-19ikk0v.txt +0 -9
  80. data/spec/dummy/public/system/event_export_files/event_exports/000/000/004/original/event_export_file_20140921-59012-10in1j8.txt +0 -9
  81. data/spec/dummy/public/system/event_export_files/event_exports/000/000/004/original/event_export_file_20140921-59315-15pzw3y.txt +0 -9
  82. data/spec/dummy/public/system/event_export_files/event_exports/000/000/004/original/event_export_file_20140922-86319-oo60ty.txt +0 -9
  83. data/spec/dummy/public/system/event_export_files/event_exports/000/000/004/original/event_export_file_20140927-1698-10wfq6m.txt +0 -9
  84. data/spec/dummy/public/system/event_export_files/event_exports/000/000/004/original/event_export_file_20141003-88157-4ti9t5.txt +0 -9
  85. data/spec/dummy/script/rails +0 -6
  86. data/spec/dummy/solr/conf/admin-extra.html +0 -31
  87. data/spec/dummy/solr/conf/elevate.xml +0 -36
  88. data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +0 -246
  89. data/spec/dummy/solr/conf/protwords.txt +0 -21
  90. data/spec/dummy/solr/conf/schema.xml +0 -255
  91. data/spec/dummy/solr/conf/scripts.conf +0 -24
  92. data/spec/dummy/solr/conf/solrconfig.xml +0 -667
  93. data/spec/dummy/solr/conf/spellings.txt +0 -2
  94. data/spec/dummy/solr/conf/stopwords.txt +0 -58
  95. data/spec/dummy/solr/conf/synonyms.txt +0 -31
  96. data/spec/dummy/solr/default/data/index/_1pd.fdt +0 -0
  97. data/spec/dummy/solr/default/data/index/_1pd.fdx +0 -0
  98. data/spec/dummy/solr/default/data/index/_1pd.fnm +0 -0
  99. data/spec/dummy/solr/default/data/index/_1pd.nvd +0 -0
  100. data/spec/dummy/solr/default/data/index/_1pd.nvm +0 -0
  101. data/spec/dummy/solr/default/data/index/_1pd.si +0 -0
  102. data/spec/dummy/solr/default/data/index/_1pd_Lucene41_0.doc +0 -0
  103. data/spec/dummy/solr/default/data/index/_1pd_Lucene41_0.pos +0 -0
  104. data/spec/dummy/solr/default/data/index/_1pd_Lucene41_0.tim +0 -0
  105. data/spec/dummy/solr/default/data/index/_1pd_Lucene41_0.tip +0 -0
  106. data/spec/dummy/solr/default/data/index/_1pe.fdt +0 -0
  107. data/spec/dummy/solr/default/data/index/_1pe.fdx +0 -0
  108. data/spec/dummy/solr/default/data/index/_1pe.fnm +0 -0
  109. data/spec/dummy/solr/default/data/index/_1pe.nvd +0 -0
  110. data/spec/dummy/solr/default/data/index/_1pe.nvm +0 -0
  111. data/spec/dummy/solr/default/data/index/_1pe.si +0 -0
  112. data/spec/dummy/solr/default/data/index/_1pe_Lucene41_0.doc +0 -0
  113. data/spec/dummy/solr/default/data/index/_1pe_Lucene41_0.pos +0 -0
  114. data/spec/dummy/solr/default/data/index/_1pe_Lucene41_0.tim +0 -0
  115. data/spec/dummy/solr/default/data/index/_1pe_Lucene41_0.tip +0 -0
  116. data/spec/dummy/solr/default/data/index/segments.gen +0 -0
  117. data/spec/dummy/solr/default/data/index/segments_2g6 +0 -0
  118. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000003163 +0 -0
  119. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000003164 +0 -0
  120. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000003165 +0 -0
  121. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000003166 +0 -0
  122. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000003167 +0 -0
  123. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000003168 +0 -0
  124. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000003169 +0 -0
  125. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000003170 +0 -0
  126. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000003171 +0 -0
  127. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000003172 +0 -0
  128. data/spec/dummy/solr/development/data/index/segments.gen +0 -0
  129. data/spec/dummy/solr/development/data/index/segments_1 +0 -0
  130. data/spec/dummy/solr/solr.xml +0 -8
  131. data/spec/dummy/solr/test/data/index/_a.fdt +0 -0
  132. data/spec/dummy/solr/test/data/index/_a.fdx +0 -0
  133. data/spec/dummy/solr/test/data/index/_a.fnm +0 -0
  134. data/spec/dummy/solr/test/data/index/_a.nvd +0 -0
  135. data/spec/dummy/solr/test/data/index/_a.nvm +0 -0
  136. data/spec/dummy/solr/test/data/index/_a.si +0 -0
  137. data/spec/dummy/solr/test/data/index/_a_Lucene41_0.doc +0 -0
  138. data/spec/dummy/solr/test/data/index/_a_Lucene41_0.pos +0 -0
  139. data/spec/dummy/solr/test/data/index/_a_Lucene41_0.tim +0 -0
  140. data/spec/dummy/solr/test/data/index/_a_Lucene41_0.tip +0 -0
  141. data/spec/dummy/solr/test/data/index/segments.gen +0 -0
  142. data/spec/dummy/solr/test/data/index/segments_n +0 -0
  143. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000000013 +0 -0
  144. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000000014 +0 -0
  145. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000000015 +0 -0
  146. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000000016 +0 -0
  147. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000000017 +0 -0
  148. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000000018 +0 -0
  149. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000000019 +0 -0
  150. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000000020 +0 -0
  151. data/spec/dummy/solr/test/data/tlog/tlog.0000000000000000021 +0 -0
  152. data/spec/dummy/tmp/cache/stdout +0 -479
  153. data/spec/dummy/tmp/pids/redis-test.pid +0 -1
@@ -9,34 +9,34 @@
9
9
  # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
10
  # you'll amass, the slower it'll run and the greater likelihood for issues).
11
11
  #
12
- # It's strongly recommended to check this file into your version control system.
12
+ # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20140823095740) do
14
+ ActiveRecord::Schema.define(version: 20141014065831) do
15
15
 
16
- create_table "accepts", :force => true do |t|
16
+ create_table "accepts", force: true do |t|
17
17
  t.integer "basket_id"
18
18
  t.integer "item_id"
19
19
  t.integer "librarian_id"
20
- t.datetime "created_at", :null => false
21
- t.datetime "updated_at", :null => false
20
+ t.datetime "created_at"
21
+ t.datetime "updated_at"
22
22
  end
23
23
 
24
- add_index "accepts", ["basket_id"], :name => "index_accepts_on_basket_id"
25
- add_index "accepts", ["item_id"], :name => "index_accepts_on_item_id"
24
+ add_index "accepts", ["basket_id"], name: "index_accepts_on_basket_id"
25
+ add_index "accepts", ["item_id"], name: "index_accepts_on_item_id"
26
26
 
27
- create_table "agent_import_file_transitions", :force => true do |t|
27
+ create_table "agent_import_file_transitions", force: true do |t|
28
28
  t.string "to_state"
29
- t.text "metadata", :default => "{}"
29
+ t.text "metadata", default: "{}"
30
30
  t.integer "sort_key"
31
31
  t.integer "agent_import_file_id"
32
- t.datetime "created_at", :null => false
33
- t.datetime "updated_at", :null => false
32
+ t.datetime "created_at"
33
+ t.datetime "updated_at"
34
34
  end
35
35
 
36
- add_index "agent_import_file_transitions", ["agent_import_file_id"], :name => "index_agent_import_file_transitions_on_agent_import_file_id"
37
- add_index "agent_import_file_transitions", ["sort_key", "agent_import_file_id"], :name => "index_agent_import_file_transitions_on_sort_key_and_file_id", :unique => true
36
+ add_index "agent_import_file_transitions", ["agent_import_file_id"], name: "index_agent_import_file_transitions_on_agent_import_file_id"
37
+ add_index "agent_import_file_transitions", ["sort_key", "agent_import_file_id"], name: "index_agent_import_file_transitions_on_sort_key_and_file_id", unique: true
38
38
 
39
- create_table "agent_import_files", :force => true do |t|
39
+ create_table "agent_import_files", force: true do |t|
40
40
  t.integer "parent_id"
41
41
  t.string "content_type"
42
42
  t.integer "size"
@@ -47,56 +47,72 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
47
47
  t.string "agent_import_content_type"
48
48
  t.integer "agent_import_file_size"
49
49
  t.datetime "agent_import_updated_at"
50
- t.datetime "created_at", :null => false
51
- t.datetime "updated_at", :null => false
50
+ t.datetime "created_at"
51
+ t.datetime "updated_at"
52
52
  t.string "agent_import_fingerprint"
53
53
  t.text "error_message"
54
54
  t.string "edit_mode"
55
55
  t.string "user_encoding"
56
56
  end
57
57
 
58
- add_index "agent_import_files", ["parent_id"], :name => "index_agent_import_files_on_parent_id"
59
- add_index "agent_import_files", ["user_id"], :name => "index_agent_import_files_on_user_id"
58
+ add_index "agent_import_files", ["parent_id"], name: "index_agent_import_files_on_parent_id"
59
+ add_index "agent_import_files", ["user_id"], name: "index_agent_import_files_on_user_id"
60
60
 
61
- create_table "agent_import_results", :force => true do |t|
61
+ create_table "agent_import_results", force: true do |t|
62
62
  t.integer "agent_import_file_id"
63
63
  t.integer "agent_id"
64
64
  t.text "body"
65
- t.datetime "created_at", :null => false
66
- t.datetime "updated_at", :null => false
65
+ t.datetime "created_at"
66
+ t.datetime "updated_at"
67
67
  end
68
68
 
69
- create_table "agent_relationship_types", :force => true do |t|
70
- t.string "name", :null => false
69
+ create_table "agent_merge_lists", force: true do |t|
70
+ t.string "title"
71
+ t.datetime "created_at"
72
+ t.datetime "updated_at"
73
+ end
74
+
75
+ create_table "agent_merges", force: true do |t|
76
+ t.integer "agent_id", null: false
77
+ t.integer "agent_merge_list_id", null: false
78
+ t.datetime "created_at"
79
+ t.datetime "updated_at"
80
+ end
81
+
82
+ add_index "agent_merges", ["agent_id"], name: "index_agent_merges_on_agent_id"
83
+ add_index "agent_merges", ["agent_merge_list_id"], name: "index_agent_merges_on_agent_merge_list_id"
84
+
85
+ create_table "agent_relationship_types", force: true do |t|
86
+ t.string "name", null: false
71
87
  t.text "display_name"
72
88
  t.text "note"
73
89
  t.integer "position"
74
- t.datetime "created_at", :null => false
75
- t.datetime "updated_at", :null => false
90
+ t.datetime "created_at"
91
+ t.datetime "updated_at"
76
92
  end
77
93
 
78
- create_table "agent_relationships", :force => true do |t|
94
+ create_table "agent_relationships", force: true do |t|
79
95
  t.integer "parent_id"
80
96
  t.integer "child_id"
81
97
  t.integer "agent_relationship_type_id"
82
- t.datetime "created_at", :null => false
83
- t.datetime "updated_at", :null => false
98
+ t.datetime "created_at"
99
+ t.datetime "updated_at"
84
100
  t.integer "position"
85
101
  end
86
102
 
87
- add_index "agent_relationships", ["child_id"], :name => "index_agent_relationships_on_child_id"
88
- add_index "agent_relationships", ["parent_id"], :name => "index_agent_relationships_on_parent_id"
103
+ add_index "agent_relationships", ["child_id"], name: "index_agent_relationships_on_child_id"
104
+ add_index "agent_relationships", ["parent_id"], name: "index_agent_relationships_on_parent_id"
89
105
 
90
- create_table "agent_types", :force => true do |t|
91
- t.string "name", :null => false
106
+ create_table "agent_types", force: true do |t|
107
+ t.string "name", null: false
92
108
  t.text "display_name"
93
109
  t.text "note"
94
110
  t.integer "position"
95
- t.datetime "created_at", :null => false
96
- t.datetime "updated_at", :null => false
111
+ t.datetime "created_at"
112
+ t.datetime "updated_at"
97
113
  end
98
114
 
99
- create_table "agents", :force => true do |t|
115
+ create_table "agents", force: true do |t|
100
116
  t.string "last_name"
101
117
  t.string "middle_name"
102
118
  t.string "first_name"
@@ -108,8 +124,8 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
108
124
  t.string "full_name"
109
125
  t.text "full_name_transcription"
110
126
  t.text "full_name_alternative"
111
- t.datetime "created_at", :null => false
112
- t.datetime "updated_at", :null => false
127
+ t.datetime "created_at"
128
+ t.datetime "updated_at"
113
129
  t.datetime "deleted_at"
114
130
  t.string "zip_code_1"
115
131
  t.string "zip_code_2"
@@ -129,13 +145,13 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
129
145
  t.text "region"
130
146
  t.datetime "date_of_birth"
131
147
  t.datetime "date_of_death"
132
- t.integer "language_id", :default => 1, :null => false
133
- t.integer "country_id", :default => 1, :null => false
134
- t.integer "agent_type_id", :default => 1, :null => false
135
- t.integer "lock_version", :default => 0, :null => false
148
+ t.integer "language_id", default: 1, null: false
149
+ t.integer "country_id", default: 1, null: false
150
+ t.integer "agent_type_id", default: 1, null: false
151
+ t.integer "lock_version", default: 0, null: false
136
152
  t.text "note"
137
- t.integer "required_role_id", :default => 1, :null => false
138
- t.integer "required_score", :default => 0, :null => false
153
+ t.integer "required_role_id", default: 1, null: false
154
+ t.integer "required_score", default: 0, null: false
139
155
  t.text "email"
140
156
  t.text "url"
141
157
  t.text "full_name_alternative_transcription"
@@ -144,24 +160,24 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
144
160
  t.string "agent_identifier"
145
161
  end
146
162
 
147
- add_index "agents", ["agent_identifier"], :name => "index_agents_on_agent_identifier"
148
- add_index "agents", ["country_id"], :name => "index_agents_on_country_id"
149
- add_index "agents", ["full_name"], :name => "index_agents_on_full_name"
150
- add_index "agents", ["language_id"], :name => "index_agents_on_language_id"
151
- add_index "agents", ["required_role_id"], :name => "index_agents_on_required_role_id"
163
+ add_index "agents", ["agent_identifier"], name: "index_agents_on_agent_identifier"
164
+ add_index "agents", ["country_id"], name: "index_agents_on_country_id"
165
+ add_index "agents", ["full_name"], name: "index_agents_on_full_name"
166
+ add_index "agents", ["language_id"], name: "index_agents_on_language_id"
167
+ add_index "agents", ["required_role_id"], name: "index_agents_on_required_role_id"
152
168
 
153
- create_table "baskets", :force => true do |t|
169
+ create_table "baskets", force: true do |t|
154
170
  t.integer "user_id"
155
171
  t.text "note"
156
- t.integer "lock_version", :default => 0, :null => false
157
- t.datetime "created_at", :null => false
158
- t.datetime "updated_at", :null => false
172
+ t.integer "lock_version", default: 0, null: false
173
+ t.datetime "created_at"
174
+ t.datetime "updated_at"
159
175
  end
160
176
 
161
- add_index "baskets", ["user_id"], :name => "index_baskets_on_user_id"
177
+ add_index "baskets", ["user_id"], name: "index_baskets_on_user_id"
162
178
 
163
- create_table "bookstores", :force => true do |t|
164
- t.text "name", :null => false
179
+ create_table "bookstores", force: true do |t|
180
+ t.text "name", null: false
165
181
  t.string "zip_code"
166
182
  t.text "address"
167
183
  t.text "note"
@@ -170,138 +186,140 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
170
186
  t.string "url"
171
187
  t.integer "position"
172
188
  t.datetime "deleted_at"
173
- t.datetime "created_at", :null => false
174
- t.datetime "updated_at", :null => false
189
+ t.datetime "created_at"
190
+ t.datetime "updated_at"
175
191
  end
176
192
 
177
- create_table "budget_types", :force => true do |t|
193
+ create_table "budget_types", force: true do |t|
178
194
  t.string "name"
179
195
  t.text "display_name"
180
196
  t.text "note"
181
197
  t.integer "position"
182
- t.datetime "created_at", :null => false
183
- t.datetime "updated_at", :null => false
198
+ t.datetime "created_at"
199
+ t.datetime "updated_at"
184
200
  end
185
201
 
186
- create_table "carrier_type_has_checkout_types", :force => true do |t|
187
- t.integer "carrier_type_id", :null => false
188
- t.integer "checkout_type_id", :null => false
202
+ create_table "carrier_type_has_checkout_types", force: true do |t|
203
+ t.integer "carrier_type_id", null: false
204
+ t.integer "checkout_type_id", null: false
189
205
  t.text "note"
190
206
  t.integer "position"
191
- t.datetime "created_at", :null => false
192
- t.datetime "updated_at", :null => false
207
+ t.datetime "created_at"
208
+ t.datetime "updated_at"
193
209
  end
194
210
 
195
- add_index "carrier_type_has_checkout_types", ["carrier_type_id"], :name => "index_carrier_type_has_checkout_types_on_m_form_id"
196
- add_index "carrier_type_has_checkout_types", ["checkout_type_id"], :name => "index_carrier_type_has_checkout_types_on_checkout_type_id"
211
+ add_index "carrier_type_has_checkout_types", ["carrier_type_id"], name: "index_carrier_type_has_checkout_types_on_m_form_id"
212
+ add_index "carrier_type_has_checkout_types", ["checkout_type_id"], name: "index_carrier_type_has_checkout_types_on_checkout_type_id"
197
213
 
198
- create_table "carrier_types", :force => true do |t|
199
- t.string "name", :null => false
214
+ create_table "carrier_types", force: true do |t|
215
+ t.string "name", null: false
200
216
  t.text "display_name"
201
217
  t.text "note"
202
218
  t.integer "position"
203
- t.datetime "created_at", :null => false
204
- t.datetime "updated_at", :null => false
219
+ t.datetime "created_at"
220
+ t.datetime "updated_at"
205
221
  end
206
222
 
207
- create_table "checked_items", :force => true do |t|
208
- t.integer "item_id", :null => false
209
- t.integer "basket_id", :null => false
210
- t.datetime "due_date", :null => false
211
- t.datetime "created_at", :null => false
212
- t.datetime "updated_at", :null => false
223
+ create_table "checked_items", force: true do |t|
224
+ t.integer "item_id", null: false
225
+ t.integer "basket_id", null: false
226
+ t.datetime "due_date", null: false
227
+ t.datetime "created_at"
228
+ t.datetime "updated_at"
213
229
  t.integer "librarian_id"
214
230
  end
215
231
 
216
- add_index "checked_items", ["basket_id"], :name => "index_checked_items_on_basket_id"
217
- add_index "checked_items", ["item_id"], :name => "index_checked_items_on_item_id"
232
+ add_index "checked_items", ["basket_id"], name: "index_checked_items_on_basket_id"
233
+ add_index "checked_items", ["item_id"], name: "index_checked_items_on_item_id"
218
234
 
219
- create_table "checkins", :force => true do |t|
220
- t.integer "item_id", :null => false
235
+ create_table "checkins", force: true do |t|
236
+ t.integer "item_id", null: false
221
237
  t.integer "librarian_id"
222
238
  t.integer "basket_id"
223
- t.datetime "created_at", :null => false
224
- t.datetime "updated_at", :null => false
225
- t.integer "lock_version", :default => 0, :null => false
239
+ t.datetime "created_at"
240
+ t.datetime "updated_at"
241
+ t.integer "lock_version", default: 0, null: false
226
242
  end
227
243
 
228
- add_index "checkins", ["basket_id"], :name => "index_checkins_on_basket_id"
229
- add_index "checkins", ["item_id"], :name => "index_checkins_on_item_id"
230
- add_index "checkins", ["librarian_id"], :name => "index_checkins_on_librarian_id"
244
+ add_index "checkins", ["basket_id"], name: "index_checkins_on_basket_id"
245
+ add_index "checkins", ["item_id"], name: "index_checkins_on_item_id"
246
+ add_index "checkins", ["librarian_id"], name: "index_checkins_on_librarian_id"
231
247
 
232
- create_table "checkout_stat_has_manifestations", :force => true do |t|
233
- t.integer "manifestation_checkout_stat_id", :null => false
234
- t.integer "manifestation_id", :null => false
248
+ create_table "checkout_stat_has_manifestations", force: true do |t|
249
+ t.integer "manifestation_checkout_stat_id", null: false
250
+ t.integer "manifestation_id", null: false
235
251
  t.integer "checkouts_count"
236
- t.datetime "created_at", :null => false
237
- t.datetime "updated_at", :null => false
252
+ t.datetime "created_at"
253
+ t.datetime "updated_at"
238
254
  end
239
255
 
240
- add_index "checkout_stat_has_manifestations", ["manifestation_checkout_stat_id"], :name => "index_checkout_stat_has_manifestations_on_checkout_stat_id"
241
- add_index "checkout_stat_has_manifestations", ["manifestation_id"], :name => "index_checkout_stat_has_manifestations_on_manifestation_id"
256
+ add_index "checkout_stat_has_manifestations", ["manifestation_checkout_stat_id"], name: "index_checkout_stat_has_manifestations_on_checkout_stat_id"
257
+ add_index "checkout_stat_has_manifestations", ["manifestation_id"], name: "index_checkout_stat_has_manifestations_on_manifestation_id"
242
258
 
243
- create_table "checkout_stat_has_users", :force => true do |t|
244
- t.integer "user_checkout_stat_id", :null => false
245
- t.integer "user_id", :null => false
246
- t.integer "checkouts_count", :default => 0, :null => false
247
- t.datetime "created_at", :null => false
248
- t.datetime "updated_at", :null => false
259
+ create_table "checkout_stat_has_users", force: true do |t|
260
+ t.integer "user_checkout_stat_id", null: false
261
+ t.integer "user_id", null: false
262
+ t.integer "checkouts_count", default: 0, null: false
263
+ t.datetime "created_at"
264
+ t.datetime "updated_at"
249
265
  end
250
266
 
251
- add_index "checkout_stat_has_users", ["user_checkout_stat_id"], :name => "index_checkout_stat_has_users_on_user_checkout_stat_id"
252
- add_index "checkout_stat_has_users", ["user_id"], :name => "index_checkout_stat_has_users_on_user_id"
267
+ add_index "checkout_stat_has_users", ["user_checkout_stat_id"], name: "index_checkout_stat_has_users_on_user_checkout_stat_id"
268
+ add_index "checkout_stat_has_users", ["user_id"], name: "index_checkout_stat_has_users_on_user_id"
253
269
 
254
- create_table "checkout_types", :force => true do |t|
255
- t.string "name", :null => false
270
+ create_table "checkout_types", force: true do |t|
271
+ t.string "name", null: false
256
272
  t.text "display_name"
257
273
  t.text "note"
258
274
  t.integer "position"
259
- t.datetime "created_at", :null => false
260
- t.datetime "updated_at", :null => false
275
+ t.datetime "created_at"
276
+ t.datetime "updated_at"
261
277
  end
262
278
 
263
- add_index "checkout_types", ["name"], :name => "index_checkout_types_on_name"
279
+ add_index "checkout_types", ["name"], name: "index_checkout_types_on_name"
264
280
 
265
- create_table "checkouts", :force => true do |t|
281
+ create_table "checkouts", force: true do |t|
266
282
  t.integer "user_id"
267
- t.integer "item_id", :null => false
283
+ t.integer "item_id", null: false
268
284
  t.integer "checkin_id"
269
285
  t.integer "librarian_id"
270
286
  t.integer "basket_id"
271
287
  t.datetime "due_date"
272
- t.integer "checkout_renewal_count", :default => 0, :null => false
273
- t.integer "lock_version", :default => 0, :null => false
274
- t.datetime "created_at", :null => false
275
- t.datetime "updated_at", :null => false
288
+ t.integer "checkout_renewal_count", default: 0, null: false
289
+ t.integer "lock_version", default: 0, null: false
290
+ t.datetime "created_at"
291
+ t.datetime "updated_at"
292
+ t.integer "shelf_id"
276
293
  end
277
294
 
278
- add_index "checkouts", ["basket_id"], :name => "index_checkouts_on_basket_id"
279
- add_index "checkouts", ["checkin_id"], :name => "index_checkouts_on_checkin_id"
280
- add_index "checkouts", ["item_id", "basket_id"], :name => "index_checkouts_on_item_id_and_basket_id", :unique => true
281
- add_index "checkouts", ["item_id"], :name => "index_checkouts_on_item_id"
282
- add_index "checkouts", ["librarian_id"], :name => "index_checkouts_on_librarian_id"
283
- add_index "checkouts", ["user_id"], :name => "index_checkouts_on_user_id"
295
+ add_index "checkouts", ["basket_id"], name: "index_checkouts_on_basket_id"
296
+ add_index "checkouts", ["checkin_id"], name: "index_checkouts_on_checkin_id"
297
+ add_index "checkouts", ["item_id", "basket_id"], name: "index_checkouts_on_item_id_and_basket_id", unique: true
298
+ add_index "checkouts", ["item_id"], name: "index_checkouts_on_item_id"
299
+ add_index "checkouts", ["librarian_id"], name: "index_checkouts_on_librarian_id"
300
+ add_index "checkouts", ["shelf_id"], name: "index_checkouts_on_shelf_id"
301
+ add_index "checkouts", ["user_id"], name: "index_checkouts_on_user_id"
284
302
 
285
- create_table "circulation_statuses", :force => true do |t|
286
- t.string "name", :null => false
303
+ create_table "circulation_statuses", force: true do |t|
304
+ t.string "name", null: false
287
305
  t.text "display_name"
288
306
  t.text "note"
289
307
  t.integer "position"
290
- t.datetime "created_at", :null => false
291
- t.datetime "updated_at", :null => false
308
+ t.datetime "created_at"
309
+ t.datetime "updated_at"
292
310
  end
293
311
 
294
- create_table "content_types", :force => true do |t|
295
- t.string "name", :null => false
312
+ create_table "content_types", force: true do |t|
313
+ t.string "name", null: false
296
314
  t.text "display_name"
297
315
  t.text "note"
298
316
  t.integer "position"
299
- t.datetime "created_at", :null => false
300
- t.datetime "updated_at", :null => false
317
+ t.datetime "created_at"
318
+ t.datetime "updated_at"
301
319
  end
302
320
 
303
- create_table "countries", :force => true do |t|
304
- t.string "name", :null => false
321
+ create_table "countries", force: true do |t|
322
+ t.string "name", null: false
305
323
  t.text "display_name"
306
324
  t.string "alpha_2"
307
325
  t.string "alpha_3"
@@ -310,87 +328,87 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
310
328
  t.integer "position"
311
329
  end
312
330
 
313
- add_index "countries", ["alpha_2"], :name => "index_countries_on_alpha_2"
314
- add_index "countries", ["alpha_3"], :name => "index_countries_on_alpha_3"
315
- add_index "countries", ["name"], :name => "index_countries_on_name"
316
- add_index "countries", ["numeric_3"], :name => "index_countries_on_numeric_3"
331
+ add_index "countries", ["alpha_2"], name: "index_countries_on_alpha_2"
332
+ add_index "countries", ["alpha_3"], name: "index_countries_on_alpha_3"
333
+ add_index "countries", ["name"], name: "index_countries_on_name"
334
+ add_index "countries", ["numeric_3"], name: "index_countries_on_numeric_3"
317
335
 
318
- create_table "create_types", :force => true do |t|
336
+ create_table "create_types", force: true do |t|
319
337
  t.string "name"
320
338
  t.text "display_name"
321
339
  t.text "note"
322
340
  t.integer "position"
323
- t.datetime "created_at", :null => false
324
- t.datetime "updated_at", :null => false
341
+ t.datetime "created_at"
342
+ t.datetime "updated_at"
325
343
  end
326
344
 
327
- create_table "creates", :force => true do |t|
328
- t.integer "agent_id", :null => false
329
- t.integer "work_id", :null => false
345
+ create_table "creates", force: true do |t|
346
+ t.integer "agent_id", null: false
347
+ t.integer "work_id", null: false
330
348
  t.integer "position"
331
- t.datetime "created_at", :null => false
332
- t.datetime "updated_at", :null => false
349
+ t.datetime "created_at"
350
+ t.datetime "updated_at"
333
351
  t.integer "create_type_id"
334
352
  end
335
353
 
336
- add_index "creates", ["agent_id"], :name => "index_creates_on_agent_id"
337
- add_index "creates", ["work_id"], :name => "index_creates_on_work_id"
354
+ add_index "creates", ["agent_id"], name: "index_creates_on_agent_id"
355
+ add_index "creates", ["work_id"], name: "index_creates_on_work_id"
338
356
 
339
- create_table "donates", :force => true do |t|
340
- t.integer "agent_id", :null => false
341
- t.integer "item_id", :null => false
342
- t.datetime "created_at", :null => false
343
- t.datetime "updated_at", :null => false
357
+ create_table "donates", force: true do |t|
358
+ t.integer "agent_id", null: false
359
+ t.integer "item_id", null: false
360
+ t.datetime "created_at"
361
+ t.datetime "updated_at"
344
362
  end
345
363
 
346
- add_index "donates", ["agent_id"], :name => "index_donates_on_agent_id"
347
- add_index "donates", ["item_id"], :name => "index_donates_on_item_id"
364
+ add_index "donates", ["agent_id"], name: "index_donates_on_agent_id"
365
+ add_index "donates", ["item_id"], name: "index_donates_on_item_id"
348
366
 
349
- create_table "event_categories", :force => true do |t|
350
- t.string "name", :null => false
367
+ create_table "event_categories", force: true do |t|
368
+ t.string "name", null: false
351
369
  t.text "display_name"
352
370
  t.text "note"
353
371
  t.integer "position"
354
- t.datetime "created_at", :null => false
355
- t.datetime "updated_at", :null => false
372
+ t.datetime "created_at"
373
+ t.datetime "updated_at"
356
374
  end
357
375
 
358
- create_table "event_export_file_transitions", :force => true do |t|
376
+ create_table "event_export_file_transitions", force: true do |t|
359
377
  t.string "to_state"
360
- t.text "metadata", :default => "{}"
378
+ t.text "metadata", default: "{}"
361
379
  t.integer "sort_key"
362
380
  t.integer "event_export_file_id"
363
- t.datetime "created_at", :null => false
364
- t.datetime "updated_at", :null => false
381
+ t.datetime "created_at"
382
+ t.datetime "updated_at"
365
383
  end
366
384
 
367
- add_index "event_export_file_transitions", ["event_export_file_id"], :name => "index_event_export_file_transitions_on_file_id"
368
- add_index "event_export_file_transitions", ["sort_key", "event_export_file_id"], :name => "index_event_export_file_transitions_on_sort_key_and_file_id", :unique => true
385
+ add_index "event_export_file_transitions", ["event_export_file_id"], name: "index_event_export_file_transitions_on_file_id"
386
+ add_index "event_export_file_transitions", ["sort_key", "event_export_file_id"], name: "index_event_export_file_transitions_on_sort_key_and_file_id", unique: true
369
387
 
370
- create_table "event_export_files", :force => true do |t|
388
+ create_table "event_export_files", force: true do |t|
371
389
  t.integer "user_id"
372
390
  t.string "event_export_file_name"
373
391
  t.string "event_export_content_type"
374
392
  t.integer "event_export_file_size"
375
393
  t.datetime "event_export_updated_at"
376
394
  t.datetime "executed_at"
377
- t.datetime "created_at", :null => false
378
- t.datetime "updated_at", :null => false
395
+ t.datetime "created_at"
396
+ t.datetime "updated_at"
379
397
  end
380
398
 
381
- create_table "event_import_file_transitions", :force => true do |t|
399
+ create_table "event_import_file_transitions", force: true do |t|
382
400
  t.string "to_state"
383
- t.text "metadata", :default => "{}"
401
+ t.text "metadata", default: "{}"
384
402
  t.integer "sort_key"
385
403
  t.integer "event_import_file_id"
386
- t.datetime "created_at", :null => false
387
- t.datetime "updated_at", :null => false
404
+ t.datetime "created_at"
405
+ t.datetime "updated_at"
388
406
  end
389
407
 
390
- add_index "event_import_file_transitions", ["event_import_file_id"], :name => "index_event_import_file_transitions_on_event_import_file_id"
391
- add_index "event_import_file_transitions", ["sort_key", "event_import_file_id"], :name => "index_event_import_file_transitions_on_sort_key_and_file_id", :unique => true
408
+ add_index "event_import_file_transitions", ["event_import_file_id"], name: "index_event_import_file_transitions_on_event_import_file_id"
409
+ add_index "event_import_file_transitions", ["sort_key", "event_import_file_id"], name: "index_event_import_file_transitions_on_sort_key_and_file_id", unique: true
392
410
 
393
- create_table "event_import_files", :force => true do |t|
411
+ create_table "event_import_files", force: true do |t|
394
412
  t.integer "parent_id"
395
413
  t.string "content_type"
396
414
  t.integer "size"
@@ -402,8 +420,8 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
402
420
  t.integer "event_import_file_size"
403
421
  t.datetime "event_import_updated_at"
404
422
  t.string "edit_mode"
405
- t.datetime "created_at", :null => false
406
- t.datetime "updated_at", :null => false
423
+ t.datetime "created_at"
424
+ t.datetime "updated_at"
407
425
  t.string "event_import_fingerprint"
408
426
  t.text "error_message"
409
427
  t.string "user_encoding"
@@ -411,155 +429,155 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
411
429
  t.integer "default_event_category_id"
412
430
  end
413
431
 
414
- add_index "event_import_files", ["parent_id"], :name => "index_event_import_files_on_parent_id"
415
- add_index "event_import_files", ["user_id"], :name => "index_event_import_files_on_user_id"
432
+ add_index "event_import_files", ["parent_id"], name: "index_event_import_files_on_parent_id"
433
+ add_index "event_import_files", ["user_id"], name: "index_event_import_files_on_user_id"
416
434
 
417
- create_table "event_import_results", :force => true do |t|
435
+ create_table "event_import_results", force: true do |t|
418
436
  t.integer "event_import_file_id"
419
437
  t.integer "event_id"
420
438
  t.text "body"
421
- t.datetime "created_at", :null => false
422
- t.datetime "updated_at", :null => false
439
+ t.datetime "created_at"
440
+ t.datetime "updated_at"
423
441
  end
424
442
 
425
- create_table "events", :force => true do |t|
426
- t.integer "library_id", :null => false
427
- t.integer "event_category_id", :null => false
443
+ create_table "events", force: true do |t|
444
+ t.integer "library_id", null: false
445
+ t.integer "event_category_id", null: false
428
446
  t.string "name"
429
447
  t.text "note"
430
448
  t.datetime "start_at"
431
449
  t.datetime "end_at"
432
- t.boolean "all_day", :default => false, :null => false
450
+ t.boolean "all_day", default: false, null: false
433
451
  t.datetime "deleted_at"
434
452
  t.text "display_name"
435
- t.datetime "created_at", :null => false
436
- t.datetime "updated_at", :null => false
453
+ t.datetime "created_at"
454
+ t.datetime "updated_at"
437
455
  end
438
456
 
439
- add_index "events", ["event_category_id"], :name => "index_events_on_event_category_id"
440
- add_index "events", ["library_id"], :name => "index_events_on_library_id"
457
+ add_index "events", ["event_category_id"], name: "index_events_on_event_category_id"
458
+ add_index "events", ["library_id"], name: "index_events_on_library_id"
441
459
 
442
- create_table "exemplifies", :force => true do |t|
443
- t.integer "manifestation_id", :null => false
444
- t.integer "item_id", :null => false
460
+ create_table "exemplifies", force: true do |t|
461
+ t.integer "manifestation_id", null: false
462
+ t.integer "item_id", null: false
445
463
  t.integer "position"
446
- t.datetime "created_at", :null => false
447
- t.datetime "updated_at", :null => false
464
+ t.datetime "created_at"
465
+ t.datetime "updated_at"
448
466
  end
449
467
 
450
- add_index "exemplifies", ["item_id"], :name => "index_exemplifies_on_item_id", :unique => true
451
- add_index "exemplifies", ["manifestation_id"], :name => "index_exemplifies_on_manifestation_id"
468
+ add_index "exemplifies", ["item_id"], name: "index_exemplifies_on_item_id", unique: true
469
+ add_index "exemplifies", ["manifestation_id"], name: "index_exemplifies_on_manifestation_id"
452
470
 
453
- create_table "form_of_works", :force => true do |t|
454
- t.string "name", :null => false
471
+ create_table "form_of_works", force: true do |t|
472
+ t.string "name", null: false
455
473
  t.text "display_name"
456
474
  t.text "note"
457
475
  t.integer "position"
458
- t.datetime "created_at", :null => false
459
- t.datetime "updated_at", :null => false
476
+ t.datetime "created_at"
477
+ t.datetime "updated_at"
460
478
  end
461
479
 
462
- create_table "frequencies", :force => true do |t|
463
- t.string "name", :null => false
480
+ create_table "frequencies", force: true do |t|
481
+ t.string "name", null: false
464
482
  t.text "display_name"
465
483
  t.text "note"
466
484
  t.integer "position"
467
- t.datetime "created_at", :null => false
468
- t.datetime "updated_at", :null => false
485
+ t.datetime "created_at"
486
+ t.datetime "updated_at"
469
487
  end
470
488
 
471
- create_table "identifier_types", :force => true do |t|
489
+ create_table "identifier_types", force: true do |t|
472
490
  t.string "name"
473
491
  t.text "display_name"
474
492
  t.text "note"
475
493
  t.integer "position"
476
- t.datetime "created_at", :null => false
477
- t.datetime "updated_at", :null => false
494
+ t.datetime "created_at"
495
+ t.datetime "updated_at"
478
496
  end
479
497
 
480
- create_table "identifiers", :force => true do |t|
481
- t.string "body", :null => false
482
- t.integer "identifier_type_id", :null => false
498
+ create_table "identifiers", force: true do |t|
499
+ t.string "body", null: false
500
+ t.integer "identifier_type_id", null: false
483
501
  t.integer "manifestation_id"
484
502
  t.boolean "primary"
485
503
  t.integer "position"
486
- t.datetime "created_at", :null => false
487
- t.datetime "updated_at", :null => false
504
+ t.datetime "created_at"
505
+ t.datetime "updated_at"
488
506
  end
489
507
 
490
- add_index "identifiers", ["body", "identifier_type_id"], :name => "index_identifiers_on_body_and_identifier_type_id"
491
- add_index "identifiers", ["manifestation_id"], :name => "index_identifiers_on_manifestation_id"
508
+ add_index "identifiers", ["body", "identifier_type_id"], name: "index_identifiers_on_body_and_identifier_type_id"
509
+ add_index "identifiers", ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
492
510
 
493
- create_table "import_request_transitions", :force => true do |t|
511
+ create_table "import_request_transitions", force: true do |t|
494
512
  t.string "to_state"
495
- t.text "metadata", :default => "{}"
513
+ t.text "metadata", default: "{}"
496
514
  t.integer "sort_key"
497
515
  t.integer "import_request_id"
498
- t.datetime "created_at", :null => false
499
- t.datetime "updated_at", :null => false
516
+ t.datetime "created_at"
517
+ t.datetime "updated_at"
500
518
  end
501
519
 
502
- add_index "import_request_transitions", ["import_request_id"], :name => "index_import_request_transitions_on_import_request_id"
503
- add_index "import_request_transitions", ["sort_key", "import_request_id"], :name => "index_import_request_transitions_on_sort_key_and_request_id", :unique => true
520
+ add_index "import_request_transitions", ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
521
+ add_index "import_request_transitions", ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
504
522
 
505
- create_table "import_requests", :force => true do |t|
523
+ create_table "import_requests", force: true do |t|
506
524
  t.string "isbn"
507
525
  t.integer "manifestation_id"
508
526
  t.integer "user_id"
509
- t.datetime "created_at", :null => false
510
- t.datetime "updated_at", :null => false
527
+ t.datetime "created_at"
528
+ t.datetime "updated_at"
511
529
  end
512
530
 
513
- add_index "import_requests", ["isbn"], :name => "index_import_requests_on_isbn"
514
- add_index "import_requests", ["manifestation_id"], :name => "index_import_requests_on_manifestation_id"
515
- add_index "import_requests", ["user_id"], :name => "index_import_requests_on_user_id"
531
+ add_index "import_requests", ["isbn"], name: "index_import_requests_on_isbn"
532
+ add_index "import_requests", ["manifestation_id"], name: "index_import_requests_on_manifestation_id"
533
+ add_index "import_requests", ["user_id"], name: "index_import_requests_on_user_id"
516
534
 
517
- create_table "item_has_use_restrictions", :force => true do |t|
518
- t.integer "item_id", :null => false
519
- t.integer "use_restriction_id", :null => false
520
- t.datetime "created_at", :null => false
521
- t.datetime "updated_at", :null => false
535
+ create_table "item_has_use_restrictions", force: true do |t|
536
+ t.integer "item_id", null: false
537
+ t.integer "use_restriction_id", null: false
538
+ t.datetime "created_at"
539
+ t.datetime "updated_at"
522
540
  end
523
541
 
524
- add_index "item_has_use_restrictions", ["item_id"], :name => "index_item_has_use_restrictions_on_item_id"
525
- add_index "item_has_use_restrictions", ["use_restriction_id"], :name => "index_item_has_use_restrictions_on_use_restriction_id"
542
+ add_index "item_has_use_restrictions", ["item_id"], name: "index_item_has_use_restrictions_on_item_id"
543
+ add_index "item_has_use_restrictions", ["use_restriction_id"], name: "index_item_has_use_restrictions_on_use_restriction_id"
526
544
 
527
- create_table "items", :force => true do |t|
545
+ create_table "items", force: true do |t|
528
546
  t.string "call_number"
529
547
  t.string "item_identifier"
530
- t.datetime "created_at", :null => false
531
- t.datetime "updated_at", :null => false
548
+ t.datetime "created_at"
549
+ t.datetime "updated_at"
532
550
  t.datetime "deleted_at"
533
- t.integer "shelf_id", :default => 1, :null => false
534
- t.boolean "include_supplements", :default => false, :null => false
551
+ t.integer "shelf_id", default: 1, null: false
552
+ t.boolean "include_supplements", default: false, null: false
535
553
  t.text "note"
536
554
  t.string "url"
537
555
  t.integer "price"
538
- t.integer "lock_version", :default => 0, :null => false
539
- t.integer "required_role_id", :default => 1, :null => false
540
- t.integer "required_score", :default => 0, :null => false
556
+ t.integer "lock_version", default: 0, null: false
557
+ t.integer "required_role_id", default: 1, null: false
558
+ t.integer "required_score", default: 0, null: false
541
559
  t.datetime "acquired_at"
542
560
  t.integer "bookstore_id"
543
561
  t.integer "budget_type_id"
544
- t.integer "circulation_status_id", :default => 5, :null => false
545
- t.integer "checkout_type_id", :default => 1, :null => false
562
+ t.integer "circulation_status_id", default: 5, null: false
563
+ t.integer "checkout_type_id", default: 1, null: false
546
564
  t.string "binding_item_identifier"
547
565
  t.string "binding_call_number"
548
566
  t.datetime "binded_at"
549
567
  t.integer "manifestation_id"
550
568
  end
551
569
 
552
- add_index "items", ["binding_item_identifier"], :name => "index_items_on_binding_item_identifier"
553
- add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
554
- add_index "items", ["checkout_type_id"], :name => "index_items_on_checkout_type_id"
555
- add_index "items", ["circulation_status_id"], :name => "index_items_on_circulation_status_id"
556
- add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
557
- add_index "items", ["manifestation_id"], :name => "index_items_on_manifestation_id"
558
- add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
559
- add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
570
+ add_index "items", ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
571
+ add_index "items", ["bookstore_id"], name: "index_items_on_bookstore_id"
572
+ add_index "items", ["checkout_type_id"], name: "index_items_on_checkout_type_id"
573
+ add_index "items", ["circulation_status_id"], name: "index_items_on_circulation_status_id"
574
+ add_index "items", ["item_identifier"], name: "index_items_on_item_identifier"
575
+ add_index "items", ["manifestation_id"], name: "index_items_on_manifestation_id"
576
+ add_index "items", ["required_role_id"], name: "index_items_on_required_role_id"
577
+ add_index "items", ["shelf_id"], name: "index_items_on_shelf_id"
560
578
 
561
- create_table "languages", :force => true do |t|
562
- t.string "name", :null => false
579
+ create_table "languages", force: true do |t|
580
+ t.string "name", null: false
563
581
  t.string "native_name"
564
582
  t.text "display_name"
565
583
  t.string "iso_639_1"
@@ -569,30 +587,30 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
569
587
  t.integer "position"
570
588
  end
571
589
 
572
- add_index "languages", ["iso_639_1"], :name => "index_languages_on_iso_639_1"
573
- add_index "languages", ["iso_639_2"], :name => "index_languages_on_iso_639_2"
574
- add_index "languages", ["iso_639_3"], :name => "index_languages_on_iso_639_3"
575
- add_index "languages", ["name"], :name => "index_languages_on_name", :unique => true
590
+ add_index "languages", ["iso_639_1"], name: "index_languages_on_iso_639_1"
591
+ add_index "languages", ["iso_639_2"], name: "index_languages_on_iso_639_2"
592
+ add_index "languages", ["iso_639_3"], name: "index_languages_on_iso_639_3"
593
+ add_index "languages", ["name"], name: "index_languages_on_name", unique: true
576
594
 
577
- create_table "lending_policies", :force => true do |t|
578
- t.integer "item_id", :null => false
579
- t.integer "user_group_id", :null => false
580
- t.integer "loan_period", :default => 0, :null => false
595
+ create_table "lending_policies", force: true do |t|
596
+ t.integer "item_id", null: false
597
+ t.integer "user_group_id", null: false
598
+ t.integer "loan_period", default: 0, null: false
581
599
  t.datetime "fixed_due_date"
582
- t.integer "renewal", :default => 0, :null => false
583
- t.integer "fine", :default => 0, :null => false
600
+ t.integer "renewal", default: 0, null: false
601
+ t.integer "fine", default: 0, null: false
584
602
  t.text "note"
585
603
  t.integer "position"
586
- t.datetime "created_at", :null => false
587
- t.datetime "updated_at", :null => false
604
+ t.datetime "created_at"
605
+ t.datetime "updated_at"
588
606
  end
589
607
 
590
- add_index "lending_policies", ["item_id", "user_group_id"], :name => "index_lending_policies_on_item_id_and_user_group_id", :unique => true
608
+ add_index "lending_policies", ["item_id", "user_group_id"], name: "index_lending_policies_on_item_id_and_user_group_id", unique: true
591
609
 
592
- create_table "libraries", :force => true do |t|
593
- t.string "name", :null => false
610
+ create_table "libraries", force: true do |t|
611
+ t.string "name", null: false
594
612
  t.text "display_name"
595
- t.string "short_display_name", :null => false
613
+ t.string "short_display_name", null: false
596
614
  t.string "zip_code"
597
615
  t.text "street"
598
616
  t.text "locality"
@@ -601,14 +619,14 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
601
619
  t.string "telephone_number_2"
602
620
  t.string "fax_number"
603
621
  t.text "note"
604
- t.integer "call_number_rows", :default => 1, :null => false
605
- t.string "call_number_delimiter", :default => "|", :null => false
606
- t.integer "library_group_id", :default => 1, :null => false
607
- t.integer "users_count", :default => 0, :null => false
622
+ t.integer "call_number_rows", default: 1, null: false
623
+ t.string "call_number_delimiter", default: "|", null: false
624
+ t.integer "library_group_id", default: 1, null: false
625
+ t.integer "users_count", default: 0, null: false
608
626
  t.integer "position"
609
627
  t.integer "country_id"
610
- t.datetime "created_at", :null => false
611
- t.datetime "updated_at", :null => false
628
+ t.datetime "created_at"
629
+ t.datetime "updated_at"
612
630
  t.datetime "deleted_at"
613
631
  t.text "opening_hour"
614
632
  t.string "isil"
@@ -616,120 +634,120 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
616
634
  t.float "longitude"
617
635
  end
618
636
 
619
- add_index "libraries", ["library_group_id"], :name => "index_libraries_on_library_group_id"
620
- add_index "libraries", ["name"], :name => "index_libraries_on_name", :unique => true
637
+ add_index "libraries", ["library_group_id"], name: "index_libraries_on_library_group_id"
638
+ add_index "libraries", ["name"], name: "index_libraries_on_name", unique: true
621
639
 
622
- create_table "library_groups", :force => true do |t|
623
- t.string "name", :null => false
640
+ create_table "library_groups", force: true do |t|
641
+ t.string "name", null: false
624
642
  t.text "display_name"
625
- t.string "short_name", :null => false
643
+ t.string "short_name", null: false
626
644
  t.text "my_networks"
627
645
  t.text "login_banner"
628
646
  t.text "note"
629
647
  t.integer "country_id"
630
648
  t.integer "position"
631
- t.datetime "created_at", :null => false
632
- t.datetime "updated_at", :null => false
649
+ t.datetime "created_at"
650
+ t.datetime "updated_at"
633
651
  t.text "admin_networks"
634
- t.string "url", :default => "http://localhost:3000/"
652
+ t.string "url", default: "http://localhost:3000/"
635
653
  end
636
654
 
637
- add_index "library_groups", ["short_name"], :name => "index_library_groups_on_short_name"
655
+ add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
638
656
 
639
- create_table "licenses", :force => true do |t|
640
- t.string "name", :null => false
657
+ create_table "licenses", force: true do |t|
658
+ t.string "name", null: false
641
659
  t.string "display_name"
642
660
  t.text "note"
643
661
  t.integer "position"
644
- t.datetime "created_at", :null => false
645
- t.datetime "updated_at", :null => false
662
+ t.datetime "created_at"
663
+ t.datetime "updated_at"
646
664
  end
647
665
 
648
- create_table "manifestation_checkout_stat_transitions", :force => true do |t|
666
+ create_table "manifestation_checkout_stat_transitions", force: true do |t|
649
667
  t.string "to_state"
650
- t.text "metadata", :default => "{}"
668
+ t.text "metadata", default: "{}"
651
669
  t.integer "sort_key"
652
670
  t.integer "manifestation_checkout_stat_id"
653
- t.datetime "created_at", :null => false
654
- t.datetime "updated_at", :null => false
671
+ t.datetime "created_at"
672
+ t.datetime "updated_at"
655
673
  end
656
674
 
657
- add_index "manifestation_checkout_stat_transitions", ["manifestation_checkout_stat_id"], :name => "index_manifestation_checkout_stat_transitions_on_stat_id"
658
- add_index "manifestation_checkout_stat_transitions", ["sort_key", "manifestation_checkout_stat_id"], :name => "index_manifestation_checkout_stat_transitions_on_transition", :unique => true
675
+ add_index "manifestation_checkout_stat_transitions", ["manifestation_checkout_stat_id"], name: "index_manifestation_checkout_stat_transitions_on_stat_id"
676
+ add_index "manifestation_checkout_stat_transitions", ["sort_key", "manifestation_checkout_stat_id"], name: "index_manifestation_checkout_stat_transitions_on_transition", unique: true
659
677
 
660
- create_table "manifestation_checkout_stats", :force => true do |t|
678
+ create_table "manifestation_checkout_stats", force: true do |t|
661
679
  t.datetime "start_date"
662
680
  t.datetime "end_date"
663
681
  t.text "note"
664
- t.datetime "created_at", :null => false
665
- t.datetime "updated_at", :null => false
682
+ t.datetime "created_at"
683
+ t.datetime "updated_at"
666
684
  t.datetime "started_at"
667
685
  t.datetime "completed_at"
668
686
  t.integer "user_id"
669
687
  end
670
688
 
671
- add_index "manifestation_checkout_stats", ["user_id"], :name => "index_manifestation_checkout_stats_on_user_id"
689
+ add_index "manifestation_checkout_stats", ["user_id"], name: "index_manifestation_checkout_stats_on_user_id"
672
690
 
673
- create_table "manifestation_relationship_types", :force => true do |t|
674
- t.string "name", :null => false
691
+ create_table "manifestation_relationship_types", force: true do |t|
692
+ t.string "name", null: false
675
693
  t.text "display_name"
676
694
  t.text "note"
677
695
  t.integer "position"
678
- t.datetime "created_at", :null => false
679
- t.datetime "updated_at", :null => false
696
+ t.datetime "created_at"
697
+ t.datetime "updated_at"
680
698
  end
681
699
 
682
- create_table "manifestation_relationships", :force => true do |t|
700
+ create_table "manifestation_relationships", force: true do |t|
683
701
  t.integer "parent_id"
684
702
  t.integer "child_id"
685
703
  t.integer "manifestation_relationship_type_id"
686
- t.datetime "created_at", :null => false
687
- t.datetime "updated_at", :null => false
704
+ t.datetime "created_at"
705
+ t.datetime "updated_at"
688
706
  t.integer "position"
689
707
  end
690
708
 
691
- add_index "manifestation_relationships", ["child_id"], :name => "index_manifestation_relationships_on_child_id"
692
- add_index "manifestation_relationships", ["parent_id"], :name => "index_manifestation_relationships_on_parent_id"
709
+ add_index "manifestation_relationships", ["child_id"], name: "index_manifestation_relationships_on_child_id"
710
+ add_index "manifestation_relationships", ["parent_id"], name: "index_manifestation_relationships_on_parent_id"
693
711
 
694
- create_table "manifestation_reserve_stat_transitions", :force => true do |t|
712
+ create_table "manifestation_reserve_stat_transitions", force: true do |t|
695
713
  t.string "to_state"
696
- t.text "metadata", :default => "{}"
714
+ t.text "metadata", default: "{}"
697
715
  t.integer "sort_key"
698
716
  t.integer "manifestation_reserve_stat_id"
699
- t.datetime "created_at", :null => false
700
- t.datetime "updated_at", :null => false
717
+ t.datetime "created_at"
718
+ t.datetime "updated_at"
701
719
  end
702
720
 
703
- add_index "manifestation_reserve_stat_transitions", ["manifestation_reserve_stat_id"], :name => "index_manifestation_reserve_stat_transitions_on_stat_id"
704
- add_index "manifestation_reserve_stat_transitions", ["sort_key", "manifestation_reserve_stat_id"], :name => "index_manifestation_reserve_stat_transitions_on_transition", :unique => true
721
+ add_index "manifestation_reserve_stat_transitions", ["manifestation_reserve_stat_id"], name: "index_manifestation_reserve_stat_transitions_on_stat_id"
722
+ add_index "manifestation_reserve_stat_transitions", ["sort_key", "manifestation_reserve_stat_id"], name: "index_manifestation_reserve_stat_transitions_on_transition", unique: true
705
723
 
706
- create_table "manifestation_reserve_stats", :force => true do |t|
724
+ create_table "manifestation_reserve_stats", force: true do |t|
707
725
  t.datetime "start_date"
708
726
  t.datetime "end_date"
709
727
  t.text "note"
710
- t.datetime "created_at", :null => false
711
- t.datetime "updated_at", :null => false
728
+ t.datetime "created_at"
729
+ t.datetime "updated_at"
712
730
  t.datetime "started_at"
713
731
  t.datetime "completed_at"
714
732
  t.integer "user_id"
715
733
  end
716
734
 
717
- add_index "manifestation_reserve_stats", ["user_id"], :name => "index_manifestation_reserve_stats_on_user_id"
735
+ add_index "manifestation_reserve_stats", ["user_id"], name: "index_manifestation_reserve_stats_on_user_id"
718
736
 
719
- create_table "manifestations", :force => true do |t|
720
- t.text "original_title", :null => false
737
+ create_table "manifestations", force: true do |t|
738
+ t.text "original_title", null: false
721
739
  t.text "title_alternative"
722
740
  t.text "title_transcription"
723
741
  t.string "classification_number"
724
742
  t.string "manifestation_identifier"
725
743
  t.datetime "date_of_publication"
726
744
  t.datetime "date_copyrighted"
727
- t.datetime "created_at", :null => false
728
- t.datetime "updated_at", :null => false
745
+ t.datetime "created_at"
746
+ t.datetime "updated_at"
729
747
  t.datetime "deleted_at"
730
748
  t.string "access_address"
731
- t.integer "language_id", :default => 1, :null => false
732
- t.integer "carrier_type_id", :default => 1, :null => false
749
+ t.integer "language_id", default: 1, null: false
750
+ t.integer "carrier_type_id", default: 1, null: false
733
751
  t.integer "start_page"
734
752
  t.integer "end_page"
735
753
  t.integer "height"
@@ -742,12 +760,12 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
742
760
  t.string "serial_number_string"
743
761
  t.integer "edition"
744
762
  t.text "note"
745
- t.boolean "repository_content", :default => false, :null => false
746
- t.integer "lock_version", :default => 0, :null => false
747
- t.integer "required_role_id", :default => 1, :null => false
748
- t.integer "required_score", :default => 0, :null => false
749
- t.integer "frequency_id", :default => 1, :null => false
750
- t.boolean "subscription_master", :default => false, :null => false
763
+ t.boolean "repository_content", default: false, null: false
764
+ t.integer "lock_version", default: 0, null: false
765
+ t.integer "required_role_id", default: 1, null: false
766
+ t.integer "required_score", default: 0, null: false
767
+ t.integer "frequency_id", default: 1, null: false
768
+ t.boolean "subscription_master", default: false, null: false
751
769
  t.string "attachment_file_name"
752
770
  t.string "attachment_content_type"
753
771
  t.integer "attachment_file_size"
@@ -765,7 +783,7 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
765
783
  t.integer "volume_number"
766
784
  t.integer "issue_number"
767
785
  t.integer "serial_number"
768
- t.integer "content_type_id", :default => 1
786
+ t.integer "content_type_id", default: 1
769
787
  t.integer "year_of_publication"
770
788
  t.text "attachment_meta"
771
789
  t.integer "month_of_publication"
@@ -778,119 +796,119 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
778
796
  t.text "dimensions"
779
797
  end
780
798
 
781
- add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
782
- add_index "manifestations", ["date_of_publication"], :name => "index_manifestations_on_date_of_publication"
783
- add_index "manifestations", ["doi"], :name => "index_manifestations_on_doi"
784
- add_index "manifestations", ["manifestation_identifier"], :name => "index_manifestations_on_manifestation_identifier"
785
- add_index "manifestations", ["updated_at"], :name => "index_manifestations_on_updated_at"
799
+ add_index "manifestations", ["access_address"], name: "index_manifestations_on_access_address"
800
+ add_index "manifestations", ["date_of_publication"], name: "index_manifestations_on_date_of_publication"
801
+ add_index "manifestations", ["doi"], name: "index_manifestations_on_doi"
802
+ add_index "manifestations", ["manifestation_identifier"], name: "index_manifestations_on_manifestation_identifier"
803
+ add_index "manifestations", ["updated_at"], name: "index_manifestations_on_updated_at"
786
804
 
787
- create_table "medium_of_performances", :force => true do |t|
788
- t.string "name", :null => false
805
+ create_table "medium_of_performances", force: true do |t|
806
+ t.string "name", null: false
789
807
  t.text "display_name"
790
808
  t.text "note"
791
809
  t.integer "position"
792
- t.datetime "created_at", :null => false
793
- t.datetime "updated_at", :null => false
810
+ t.datetime "created_at"
811
+ t.datetime "updated_at"
794
812
  end
795
813
 
796
- create_table "message_request_transitions", :force => true do |t|
814
+ create_table "message_request_transitions", force: true do |t|
797
815
  t.string "to_state"
798
- t.text "metadata", :default => "{}"
816
+ t.text "metadata", default: "{}"
799
817
  t.integer "sort_key"
800
818
  t.integer "message_request_id"
801
- t.datetime "created_at", :null => false
802
- t.datetime "updated_at", :null => false
819
+ t.datetime "created_at"
820
+ t.datetime "updated_at"
803
821
  end
804
822
 
805
- add_index "message_request_transitions", ["message_request_id"], :name => "index_message_request_transitions_on_message_request_id"
806
- add_index "message_request_transitions", ["sort_key", "message_request_id"], :name => "index_message_request_transitions_on_sort_key_and_request_id", :unique => true
823
+ add_index "message_request_transitions", ["message_request_id"], name: "index_message_request_transitions_on_message_request_id"
824
+ add_index "message_request_transitions", ["sort_key", "message_request_id"], name: "index_message_request_transitions_on_sort_key_and_request_id", unique: true
807
825
 
808
- create_table "message_requests", :force => true do |t|
826
+ create_table "message_requests", force: true do |t|
809
827
  t.integer "sender_id"
810
828
  t.integer "receiver_id"
811
829
  t.integer "message_template_id"
812
830
  t.datetime "sent_at"
813
831
  t.datetime "deleted_at"
814
832
  t.text "body"
815
- t.datetime "created_at", :null => false
816
- t.datetime "updated_at", :null => false
833
+ t.datetime "created_at"
834
+ t.datetime "updated_at"
817
835
  end
818
836
 
819
- create_table "message_templates", :force => true do |t|
820
- t.string "status", :null => false
821
- t.text "title", :null => false
822
- t.text "body", :null => false
837
+ create_table "message_templates", force: true do |t|
838
+ t.string "status", null: false
839
+ t.text "title", null: false
840
+ t.text "body", null: false
823
841
  t.integer "position"
824
- t.string "locale", :default => "en"
825
- t.datetime "created_at", :null => false
826
- t.datetime "updated_at", :null => false
842
+ t.string "locale", default: "en"
843
+ t.datetime "created_at"
844
+ t.datetime "updated_at"
827
845
  end
828
846
 
829
- add_index "message_templates", ["status"], :name => "index_message_templates_on_status", :unique => true
847
+ add_index "message_templates", ["status"], name: "index_message_templates_on_status", unique: true
830
848
 
831
- create_table "message_transitions", :force => true do |t|
849
+ create_table "message_transitions", force: true do |t|
832
850
  t.string "to_state"
833
- t.text "metadata", :default => "{}"
851
+ t.text "metadata", default: "{}"
834
852
  t.integer "sort_key"
835
853
  t.integer "message_id"
836
- t.datetime "created_at", :null => false
837
- t.datetime "updated_at", :null => false
854
+ t.datetime "created_at"
855
+ t.datetime "updated_at"
838
856
  end
839
857
 
840
- add_index "message_transitions", ["message_id"], :name => "index_message_transitions_on_message_id"
841
- add_index "message_transitions", ["sort_key", "message_id"], :name => "index_message_transitions_on_sort_key_and_message_id", :unique => true
858
+ add_index "message_transitions", ["message_id"], name: "index_message_transitions_on_message_id"
859
+ add_index "message_transitions", ["sort_key", "message_id"], name: "index_message_transitions_on_sort_key_and_message_id", unique: true
842
860
 
843
- create_table "messages", :force => true do |t|
861
+ create_table "messages", force: true do |t|
844
862
  t.datetime "read_at"
845
863
  t.integer "receiver_id"
846
864
  t.integer "sender_id"
847
- t.string "subject", :null => false
865
+ t.string "subject", null: false
848
866
  t.text "body"
849
867
  t.integer "message_request_id"
850
868
  t.integer "parent_id"
851
- t.datetime "created_at", :null => false
852
- t.datetime "updated_at", :null => false
869
+ t.datetime "created_at"
870
+ t.datetime "updated_at"
853
871
  t.integer "lft"
854
872
  t.integer "rgt"
855
873
  t.integer "depth"
856
874
  end
857
875
 
858
- add_index "messages", ["message_request_id"], :name => "index_messages_on_message_request_id"
859
- add_index "messages", ["parent_id"], :name => "index_messages_on_parent_id"
860
- add_index "messages", ["receiver_id"], :name => "index_messages_on_receiver_id"
861
- add_index "messages", ["sender_id"], :name => "index_messages_on_sender_id"
876
+ add_index "messages", ["message_request_id"], name: "index_messages_on_message_request_id"
877
+ add_index "messages", ["parent_id"], name: "index_messages_on_parent_id"
878
+ add_index "messages", ["receiver_id"], name: "index_messages_on_receiver_id"
879
+ add_index "messages", ["sender_id"], name: "index_messages_on_sender_id"
862
880
 
863
- create_table "owns", :force => true do |t|
864
- t.integer "agent_id", :null => false
865
- t.integer "item_id", :null => false
881
+ create_table "owns", force: true do |t|
882
+ t.integer "agent_id", null: false
883
+ t.integer "item_id", null: false
866
884
  t.integer "position"
867
- t.datetime "created_at", :null => false
868
- t.datetime "updated_at", :null => false
885
+ t.datetime "created_at"
886
+ t.datetime "updated_at"
869
887
  end
870
888
 
871
- add_index "owns", ["agent_id"], :name => "index_owns_on_agent_id"
872
- add_index "owns", ["item_id"], :name => "index_owns_on_item_id"
889
+ add_index "owns", ["agent_id"], name: "index_owns_on_agent_id"
890
+ add_index "owns", ["item_id"], name: "index_owns_on_item_id"
873
891
 
874
- create_table "participates", :force => true do |t|
875
- t.integer "agent_id", :null => false
876
- t.integer "event_id", :null => false
892
+ create_table "participates", force: true do |t|
893
+ t.integer "agent_id", null: false
894
+ t.integer "event_id", null: false
877
895
  t.integer "position"
878
- t.datetime "created_at", :null => false
879
- t.datetime "updated_at", :null => false
896
+ t.datetime "created_at"
897
+ t.datetime "updated_at"
880
898
  end
881
899
 
882
- add_index "participates", ["agent_id"], :name => "index_participates_on_agent_id"
883
- add_index "participates", ["event_id"], :name => "index_participates_on_event_id"
900
+ add_index "participates", ["agent_id"], name: "index_participates_on_agent_id"
901
+ add_index "participates", ["event_id"], name: "index_participates_on_event_id"
884
902
 
885
- create_table "picture_files", :force => true do |t|
903
+ create_table "picture_files", force: true do |t|
886
904
  t.integer "picture_attachable_id"
887
905
  t.string "picture_attachable_type"
888
906
  t.string "content_type"
889
907
  t.text "title"
890
908
  t.string "thumbnail"
891
909
  t.integer "position"
892
- t.datetime "created_at", :null => false
893
- t.datetime "updated_at", :null => false
910
+ t.datetime "created_at"
911
+ t.datetime "updated_at"
894
912
  t.string "picture_file_name"
895
913
  t.string "picture_content_type"
896
914
  t.integer "picture_file_size"
@@ -899,30 +917,30 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
899
917
  t.string "picture_fingerprint"
900
918
  end
901
919
 
902
- add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], :name => "index_picture_files_on_picture_attachable_id_and_type"
920
+ add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
903
921
 
904
- create_table "produce_types", :force => true do |t|
922
+ create_table "produce_types", force: true do |t|
905
923
  t.string "name"
906
924
  t.text "display_name"
907
925
  t.text "note"
908
926
  t.integer "position"
909
- t.datetime "created_at", :null => false
910
- t.datetime "updated_at", :null => false
927
+ t.datetime "created_at"
928
+ t.datetime "updated_at"
911
929
  end
912
930
 
913
- create_table "produces", :force => true do |t|
914
- t.integer "agent_id", :null => false
915
- t.integer "manifestation_id", :null => false
931
+ create_table "produces", force: true do |t|
932
+ t.integer "agent_id", null: false
933
+ t.integer "manifestation_id", null: false
916
934
  t.integer "position"
917
- t.datetime "created_at", :null => false
918
- t.datetime "updated_at", :null => false
935
+ t.datetime "created_at"
936
+ t.datetime "updated_at"
919
937
  t.integer "produce_type_id"
920
938
  end
921
939
 
922
- add_index "produces", ["agent_id"], :name => "index_produces_on_agent_id"
923
- add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
940
+ add_index "produces", ["agent_id"], name: "index_produces_on_agent_id"
941
+ add_index "produces", ["manifestation_id"], name: "index_produces_on_manifestation_id"
924
942
 
925
- create_table "profiles", :force => true do |t|
943
+ create_table "profiles", force: true do |t|
926
944
  t.integer "user_id"
927
945
  t.integer "user_group_id"
928
946
  t.integer "library_id"
@@ -932,139 +950,151 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
932
950
  t.text "note"
933
951
  t.text "keyword_list"
934
952
  t.integer "required_role_id"
935
- t.datetime "created_at", :null => false
936
- t.datetime "updated_at", :null => false
953
+ t.datetime "created_at"
954
+ t.datetime "updated_at"
937
955
  t.string "checkout_icalendar_token"
938
- t.boolean "save_checkout_history", :default => false, :null => false
956
+ t.boolean "save_checkout_history", default: false, null: false
939
957
  t.datetime "expired_at"
958
+ t.text "full_name_transcription"
959
+ t.datetime "date_of_birth"
940
960
  end
941
961
 
942
- add_index "profiles", ["checkout_icalendar_token"], :name => "index_profiles_on_checkout_icalendar_token", :unique => true
943
- add_index "profiles", ["user_id"], :name => "index_profiles_on_user_id"
944
- add_index "profiles", ["user_number"], :name => "index_profiles_on_user_number", :unique => true
962
+ add_index "profiles", ["checkout_icalendar_token"], name: "index_profiles_on_checkout_icalendar_token", unique: true
963
+ add_index "profiles", ["user_id"], name: "index_profiles_on_user_id"
964
+ add_index "profiles", ["user_number"], name: "index_profiles_on_user_number", unique: true
945
965
 
946
- create_table "realize_types", :force => true do |t|
966
+ create_table "realize_types", force: true do |t|
947
967
  t.string "name"
948
968
  t.text "display_name"
949
969
  t.text "note"
950
970
  t.integer "position"
951
- t.datetime "created_at", :null => false
952
- t.datetime "updated_at", :null => false
971
+ t.datetime "created_at"
972
+ t.datetime "updated_at"
953
973
  end
954
974
 
955
- create_table "realizes", :force => true do |t|
956
- t.integer "agent_id", :null => false
957
- t.integer "expression_id", :null => false
975
+ create_table "realizes", force: true do |t|
976
+ t.integer "agent_id", null: false
977
+ t.integer "expression_id", null: false
958
978
  t.integer "position"
959
- t.datetime "created_at", :null => false
960
- t.datetime "updated_at", :null => false
979
+ t.datetime "created_at"
980
+ t.datetime "updated_at"
961
981
  t.integer "realize_type_id"
962
982
  end
963
983
 
964
- add_index "realizes", ["agent_id"], :name => "index_realizes_on_agent_id"
965
- add_index "realizes", ["expression_id"], :name => "index_realizes_on_expression_id"
984
+ add_index "realizes", ["agent_id"], name: "index_realizes_on_agent_id"
985
+ add_index "realizes", ["expression_id"], name: "index_realizes_on_expression_id"
966
986
 
967
- create_table "request_status_types", :force => true do |t|
968
- t.string "name", :null => false
987
+ create_table "request_status_types", force: true do |t|
988
+ t.string "name", null: false
969
989
  t.text "display_name"
970
990
  t.text "note"
971
991
  t.integer "position"
972
- t.datetime "created_at", :null => false
973
- t.datetime "updated_at", :null => false
992
+ t.datetime "created_at"
993
+ t.datetime "updated_at"
974
994
  end
975
995
 
976
- create_table "request_types", :force => true do |t|
977
- t.string "name", :null => false
996
+ create_table "request_types", force: true do |t|
997
+ t.string "name", null: false
978
998
  t.text "display_name"
979
999
  t.text "note"
980
1000
  t.integer "position"
981
- t.datetime "created_at", :null => false
982
- t.datetime "updated_at", :null => false
1001
+ t.datetime "created_at"
1002
+ t.datetime "updated_at"
983
1003
  end
984
1004
 
985
- create_table "reserve_stat_has_manifestations", :force => true do |t|
986
- t.integer "manifestation_reserve_stat_id", :null => false
987
- t.integer "manifestation_id", :null => false
1005
+ create_table "reserve_stat_has_manifestations", force: true do |t|
1006
+ t.integer "manifestation_reserve_stat_id", null: false
1007
+ t.integer "manifestation_id", null: false
988
1008
  t.integer "reserves_count"
989
- t.datetime "created_at", :null => false
990
- t.datetime "updated_at", :null => false
1009
+ t.datetime "created_at"
1010
+ t.datetime "updated_at"
991
1011
  end
992
1012
 
993
- add_index "reserve_stat_has_manifestations", ["manifestation_id"], :name => "index_reserve_stat_has_manifestations_on_manifestation_id"
994
- add_index "reserve_stat_has_manifestations", ["manifestation_reserve_stat_id"], :name => "index_reserve_stat_has_manifestations_on_m_reserve_stat_id"
1013
+ add_index "reserve_stat_has_manifestations", ["manifestation_id"], name: "index_reserve_stat_has_manifestations_on_manifestation_id"
1014
+ add_index "reserve_stat_has_manifestations", ["manifestation_reserve_stat_id"], name: "index_reserve_stat_has_manifestations_on_m_reserve_stat_id"
995
1015
 
996
- create_table "reserve_stat_has_users", :force => true do |t|
997
- t.integer "user_reserve_stat_id", :null => false
998
- t.integer "user_id", :null => false
1016
+ create_table "reserve_stat_has_users", force: true do |t|
1017
+ t.integer "user_reserve_stat_id", null: false
1018
+ t.integer "user_id", null: false
999
1019
  t.integer "reserves_count"
1000
- t.datetime "created_at", :null => false
1001
- t.datetime "updated_at", :null => false
1020
+ t.datetime "created_at"
1021
+ t.datetime "updated_at"
1002
1022
  end
1003
1023
 
1004
- add_index "reserve_stat_has_users", ["user_id"], :name => "index_reserve_stat_has_users_on_user_id"
1005
- add_index "reserve_stat_has_users", ["user_reserve_stat_id"], :name => "index_reserve_stat_has_users_on_user_reserve_stat_id"
1024
+ add_index "reserve_stat_has_users", ["user_id"], name: "index_reserve_stat_has_users_on_user_id"
1025
+ add_index "reserve_stat_has_users", ["user_reserve_stat_id"], name: "index_reserve_stat_has_users_on_user_reserve_stat_id"
1006
1026
 
1007
- create_table "reserves", :force => true do |t|
1008
- t.integer "user_id", :null => false
1009
- t.integer "manifestation_id", :null => false
1027
+ create_table "reserve_transitions", force: true do |t|
1028
+ t.string "to_state"
1029
+ t.text "metadata", default: "{}"
1030
+ t.integer "sort_key"
1031
+ t.integer "reserve_id"
1032
+ t.datetime "created_at"
1033
+ t.datetime "updated_at"
1034
+ end
1035
+
1036
+ add_index "reserve_transitions", ["reserve_id"], name: "index_reserve_transitions_on_reserve_id"
1037
+ add_index "reserve_transitions", ["sort_key", "reserve_id"], name: "index_reserve_transitions_on_sort_key_and_reserve_id", unique: true
1038
+
1039
+ create_table "reserves", force: true do |t|
1040
+ t.integer "user_id", null: false
1041
+ t.integer "manifestation_id", null: false
1010
1042
  t.integer "item_id"
1011
- t.integer "request_status_type_id", :null => false
1043
+ t.integer "request_status_type_id", null: false
1012
1044
  t.datetime "checked_out_at"
1013
- t.datetime "created_at", :null => false
1014
- t.datetime "updated_at", :null => false
1045
+ t.datetime "created_at"
1046
+ t.datetime "updated_at"
1015
1047
  t.datetime "canceled_at"
1016
1048
  t.datetime "expired_at"
1017
1049
  t.datetime "deleted_at"
1018
- t.string "state"
1019
- t.boolean "expiration_notice_to_patron", :default => false
1020
- t.boolean "expiration_notice_to_library", :default => false
1050
+ t.boolean "expiration_notice_to_patron", default: false
1051
+ t.boolean "expiration_notice_to_library", default: false
1021
1052
  t.datetime "retained_at"
1022
1053
  t.datetime "postponed_at"
1023
- t.integer "lock_version", :default => 0, :null => false
1054
+ t.integer "lock_version", default: 0, null: false
1024
1055
  end
1025
1056
 
1026
- add_index "reserves", ["item_id"], :name => "index_reserves_on_item_id"
1027
- add_index "reserves", ["manifestation_id"], :name => "index_reserves_on_manifestation_id"
1028
- add_index "reserves", ["request_status_type_id"], :name => "index_reserves_on_request_status_type_id"
1029
- add_index "reserves", ["state"], :name => "index_reserves_on_state"
1030
- add_index "reserves", ["user_id"], :name => "index_reserves_on_user_id"
1057
+ add_index "reserves", ["item_id"], name: "index_reserves_on_item_id"
1058
+ add_index "reserves", ["manifestation_id"], name: "index_reserves_on_manifestation_id"
1059
+ add_index "reserves", ["request_status_type_id"], name: "index_reserves_on_request_status_type_id"
1060
+ add_index "reserves", ["user_id"], name: "index_reserves_on_user_id"
1031
1061
 
1032
- create_table "resource_export_file_transitions", :force => true do |t|
1062
+ create_table "resource_export_file_transitions", force: true do |t|
1033
1063
  t.string "to_state"
1034
- t.text "metadata", :default => "{}"
1064
+ t.text "metadata", default: "{}"
1035
1065
  t.integer "sort_key"
1036
1066
  t.integer "resource_export_file_id"
1037
- t.datetime "created_at", :null => false
1038
- t.datetime "updated_at", :null => false
1067
+ t.datetime "created_at"
1068
+ t.datetime "updated_at"
1039
1069
  end
1040
1070
 
1041
- add_index "resource_export_file_transitions", ["resource_export_file_id"], :name => "index_resource_export_file_transitions_on_file_id"
1042
- add_index "resource_export_file_transitions", ["sort_key", "resource_export_file_id"], :name => "index_resource_export_file_transitions_on_sort_key_and_file_id", :unique => true
1071
+ add_index "resource_export_file_transitions", ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
1072
+ add_index "resource_export_file_transitions", ["sort_key", "resource_export_file_id"], name: "index_resource_export_file_transitions_on_sort_key_and_file_id", unique: true
1043
1073
 
1044
- create_table "resource_export_files", :force => true do |t|
1074
+ create_table "resource_export_files", force: true do |t|
1045
1075
  t.integer "user_id"
1046
1076
  t.string "resource_export_file_name"
1047
1077
  t.string "resource_export_content_type"
1048
1078
  t.integer "resource_export_file_size"
1049
1079
  t.datetime "resource_export_updated_at"
1050
1080
  t.datetime "executed_at"
1051
- t.datetime "created_at", :null => false
1052
- t.datetime "updated_at", :null => false
1081
+ t.datetime "created_at"
1082
+ t.datetime "updated_at"
1053
1083
  end
1054
1084
 
1055
- create_table "resource_import_file_transitions", :force => true do |t|
1085
+ create_table "resource_import_file_transitions", force: true do |t|
1056
1086
  t.string "to_state"
1057
- t.text "metadata", :default => "{}"
1087
+ t.text "metadata", default: "{}"
1058
1088
  t.integer "sort_key"
1059
1089
  t.integer "resource_import_file_id"
1060
- t.datetime "created_at", :null => false
1061
- t.datetime "updated_at", :null => false
1090
+ t.datetime "created_at"
1091
+ t.datetime "updated_at"
1062
1092
  end
1063
1093
 
1064
- add_index "resource_import_file_transitions", ["resource_import_file_id"], :name => "index_resource_import_file_transitions_on_file_id"
1065
- add_index "resource_import_file_transitions", ["sort_key", "resource_import_file_id"], :name => "index_resource_import_file_transitions_on_sort_key_and_file_id", :unique => true
1094
+ add_index "resource_import_file_transitions", ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
1095
+ add_index "resource_import_file_transitions", ["sort_key", "resource_import_file_id"], name: "index_resource_import_file_transitions_on_sort_key_and_file_id", unique: true
1066
1096
 
1067
- create_table "resource_import_files", :force => true do |t|
1097
+ create_table "resource_import_files", force: true do |t|
1068
1098
  t.integer "parent_id"
1069
1099
  t.string "content_type"
1070
1100
  t.integer "size"
@@ -1075,8 +1105,8 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
1075
1105
  t.string "resource_import_content_type"
1076
1106
  t.integer "resource_import_file_size"
1077
1107
  t.datetime "resource_import_updated_at"
1078
- t.datetime "created_at", :null => false
1079
- t.datetime "updated_at", :null => false
1108
+ t.datetime "created_at"
1109
+ t.datetime "updated_at"
1080
1110
  t.string "edit_mode"
1081
1111
  t.string "resource_import_fingerprint"
1082
1112
  t.text "error_message"
@@ -1084,71 +1114,71 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
1084
1114
  t.integer "default_shelf_id"
1085
1115
  end
1086
1116
 
1087
- add_index "resource_import_files", ["parent_id"], :name => "index_resource_import_files_on_parent_id"
1088
- add_index "resource_import_files", ["user_id"], :name => "index_resource_import_files_on_user_id"
1117
+ add_index "resource_import_files", ["parent_id"], name: "index_resource_import_files_on_parent_id"
1118
+ add_index "resource_import_files", ["user_id"], name: "index_resource_import_files_on_user_id"
1089
1119
 
1090
- create_table "resource_import_results", :force => true do |t|
1120
+ create_table "resource_import_results", force: true do |t|
1091
1121
  t.integer "resource_import_file_id"
1092
1122
  t.integer "manifestation_id"
1093
1123
  t.integer "item_id"
1094
1124
  t.text "body"
1095
- t.datetime "created_at", :null => false
1096
- t.datetime "updated_at", :null => false
1125
+ t.datetime "created_at"
1126
+ t.datetime "updated_at"
1097
1127
  t.text "error_message"
1098
1128
  end
1099
1129
 
1100
- add_index "resource_import_results", ["item_id"], :name => "index_resource_import_results_on_item_id"
1101
- add_index "resource_import_results", ["manifestation_id"], :name => "index_resource_import_results_on_manifestation_id"
1102
- add_index "resource_import_results", ["resource_import_file_id"], :name => "index_resource_import_results_on_resource_import_file_id"
1130
+ add_index "resource_import_results", ["item_id"], name: "index_resource_import_results_on_item_id"
1131
+ add_index "resource_import_results", ["manifestation_id"], name: "index_resource_import_results_on_manifestation_id"
1132
+ add_index "resource_import_results", ["resource_import_file_id"], name: "index_resource_import_results_on_resource_import_file_id"
1103
1133
 
1104
- create_table "roles", :force => true do |t|
1105
- t.string "name", :null => false
1134
+ create_table "roles", force: true do |t|
1135
+ t.string "name", null: false
1106
1136
  t.string "display_name"
1107
1137
  t.text "note"
1108
1138
  t.datetime "created_at"
1109
1139
  t.datetime "updated_at"
1110
- t.integer "score", :default => 0, :null => false
1140
+ t.integer "score", default: 0, null: false
1111
1141
  t.integer "position"
1112
1142
  end
1113
1143
 
1114
- create_table "search_engines", :force => true do |t|
1115
- t.string "name", :null => false
1144
+ create_table "search_engines", force: true do |t|
1145
+ t.string "name", null: false
1116
1146
  t.text "display_name"
1117
- t.string "url", :null => false
1118
- t.text "base_url", :null => false
1119
- t.text "http_method", :null => false
1120
- t.text "query_param", :null => false
1147
+ t.string "url", null: false
1148
+ t.text "base_url", null: false
1149
+ t.text "http_method", null: false
1150
+ t.text "query_param", null: false
1121
1151
  t.text "additional_param"
1122
1152
  t.text "note"
1123
1153
  t.integer "position"
1124
- t.datetime "created_at", :null => false
1125
- t.datetime "updated_at", :null => false
1154
+ t.datetime "created_at"
1155
+ t.datetime "updated_at"
1126
1156
  end
1127
1157
 
1128
- create_table "series_statement_merge_lists", :force => true do |t|
1158
+ create_table "series_statement_merge_lists", force: true do |t|
1129
1159
  t.string "title"
1130
- t.datetime "created_at", :null => false
1131
- t.datetime "updated_at", :null => false
1160
+ t.datetime "created_at"
1161
+ t.datetime "updated_at"
1132
1162
  end
1133
1163
 
1134
- create_table "series_statement_merges", :force => true do |t|
1135
- t.integer "series_statement_id", :null => false
1136
- t.integer "series_statement_merge_list_id", :null => false
1137
- t.datetime "created_at", :null => false
1138
- t.datetime "updated_at", :null => false
1164
+ create_table "series_statement_merges", force: true do |t|
1165
+ t.integer "series_statement_id", null: false
1166
+ t.integer "series_statement_merge_list_id", null: false
1167
+ t.datetime "created_at"
1168
+ t.datetime "updated_at"
1139
1169
  end
1140
1170
 
1141
- add_index "series_statement_merges", ["series_statement_id"], :name => "index_series_statement_merges_on_series_statement_id"
1142
- add_index "series_statement_merges", ["series_statement_merge_list_id"], :name => "index_series_statement_merges_on_list_id"
1171
+ add_index "series_statement_merges", ["series_statement_id"], name: "index_series_statement_merges_on_series_statement_id"
1172
+ add_index "series_statement_merges", ["series_statement_merge_list_id"], name: "index_series_statement_merges_on_list_id"
1143
1173
 
1144
- create_table "series_statements", :force => true do |t|
1174
+ create_table "series_statements", force: true do |t|
1145
1175
  t.text "original_title"
1146
1176
  t.text "numbering"
1147
1177
  t.text "title_subseries"
1148
1178
  t.text "numbering_subseries"
1149
1179
  t.integer "position"
1150
- t.datetime "created_at", :null => false
1151
- t.datetime "updated_at", :null => false
1180
+ t.datetime "created_at"
1181
+ t.datetime "updated_at"
1152
1182
  t.text "title_transcription"
1153
1183
  t.text "title_alternative"
1154
1184
  t.string "series_statement_identifier"
@@ -1162,166 +1192,166 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
1162
1192
  t.integer "root_manifestation_id"
1163
1193
  end
1164
1194
 
1165
- add_index "series_statements", ["manifestation_id"], :name => "index_series_statements_on_manifestation_id"
1166
- add_index "series_statements", ["root_manifestation_id"], :name => "index_series_statements_on_root_manifestation_id"
1167
- add_index "series_statements", ["series_statement_identifier"], :name => "index_series_statements_on_series_statement_identifier"
1195
+ add_index "series_statements", ["manifestation_id"], name: "index_series_statements_on_manifestation_id"
1196
+ add_index "series_statements", ["root_manifestation_id"], name: "index_series_statements_on_root_manifestation_id"
1197
+ add_index "series_statements", ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
1168
1198
 
1169
- create_table "shelves", :force => true do |t|
1170
- t.string "name", :null => false
1199
+ create_table "shelves", force: true do |t|
1200
+ t.string "name", null: false
1171
1201
  t.text "display_name"
1172
1202
  t.text "note"
1173
- t.integer "library_id", :default => 1, :null => false
1174
- t.integer "items_count", :default => 0, :null => false
1203
+ t.integer "library_id", default: 1, null: false
1204
+ t.integer "items_count", default: 0, null: false
1175
1205
  t.integer "position"
1176
- t.datetime "created_at", :null => false
1177
- t.datetime "updated_at", :null => false
1206
+ t.datetime "created_at"
1207
+ t.datetime "updated_at"
1178
1208
  t.datetime "deleted_at"
1179
- t.boolean "closed", :default => false, :null => false
1209
+ t.boolean "closed", default: false, null: false
1180
1210
  end
1181
1211
 
1182
- add_index "shelves", ["library_id"], :name => "index_shelves_on_library_id"
1212
+ add_index "shelves", ["library_id"], name: "index_shelves_on_library_id"
1183
1213
 
1184
- create_table "subscribes", :force => true do |t|
1185
- t.integer "subscription_id", :null => false
1186
- t.integer "work_id", :null => false
1187
- t.datetime "start_at", :null => false
1188
- t.datetime "end_at", :null => false
1189
- t.datetime "created_at", :null => false
1190
- t.datetime "updated_at", :null => false
1214
+ create_table "subscribes", force: true do |t|
1215
+ t.integer "subscription_id", null: false
1216
+ t.integer "work_id", null: false
1217
+ t.datetime "start_at", null: false
1218
+ t.datetime "end_at", null: false
1219
+ t.datetime "created_at"
1220
+ t.datetime "updated_at"
1191
1221
  end
1192
1222
 
1193
- add_index "subscribes", ["subscription_id"], :name => "index_subscribes_on_subscription_id"
1194
- add_index "subscribes", ["work_id"], :name => "index_subscribes_on_work_id"
1223
+ add_index "subscribes", ["subscription_id"], name: "index_subscribes_on_subscription_id"
1224
+ add_index "subscribes", ["work_id"], name: "index_subscribes_on_work_id"
1195
1225
 
1196
- create_table "subscriptions", :force => true do |t|
1197
- t.text "title", :null => false
1226
+ create_table "subscriptions", force: true do |t|
1227
+ t.text "title", null: false
1198
1228
  t.text "note"
1199
1229
  t.integer "user_id"
1200
1230
  t.integer "order_list_id"
1201
1231
  t.datetime "deleted_at"
1202
- t.integer "subscribes_count", :default => 0, :null => false
1203
- t.datetime "created_at", :null => false
1204
- t.datetime "updated_at", :null => false
1232
+ t.integer "subscribes_count", default: 0, null: false
1233
+ t.datetime "created_at"
1234
+ t.datetime "updated_at"
1205
1235
  end
1206
1236
 
1207
- add_index "subscriptions", ["order_list_id"], :name => "index_subscriptions_on_order_list_id"
1208
- add_index "subscriptions", ["user_id"], :name => "index_subscriptions_on_user_id"
1237
+ add_index "subscriptions", ["order_list_id"], name: "index_subscriptions_on_order_list_id"
1238
+ add_index "subscriptions", ["user_id"], name: "index_subscriptions_on_user_id"
1209
1239
 
1210
- create_table "use_restrictions", :force => true do |t|
1211
- t.string "name", :null => false
1240
+ create_table "use_restrictions", force: true do |t|
1241
+ t.string "name", null: false
1212
1242
  t.text "display_name"
1213
1243
  t.text "note"
1214
1244
  t.integer "position"
1215
- t.datetime "created_at", :null => false
1216
- t.datetime "updated_at", :null => false
1245
+ t.datetime "created_at"
1246
+ t.datetime "updated_at"
1217
1247
  end
1218
1248
 
1219
- create_table "user_checkout_stat_transitions", :force => true do |t|
1249
+ create_table "user_checkout_stat_transitions", force: true do |t|
1220
1250
  t.string "to_state"
1221
- t.text "metadata", :default => "{}"
1251
+ t.text "metadata", default: "{}"
1222
1252
  t.integer "sort_key"
1223
1253
  t.integer "user_checkout_stat_id"
1224
- t.datetime "created_at", :null => false
1225
- t.datetime "updated_at", :null => false
1254
+ t.datetime "created_at"
1255
+ t.datetime "updated_at"
1226
1256
  end
1227
1257
 
1228
- add_index "user_checkout_stat_transitions", ["sort_key", "user_checkout_stat_id"], :name => "index_user_checkout_stat_transitions_on_sort_key_and_stat_id", :unique => true
1229
- add_index "user_checkout_stat_transitions", ["user_checkout_stat_id"], :name => "index_user_checkout_stat_transitions_on_user_checkout_stat_id"
1258
+ add_index "user_checkout_stat_transitions", ["sort_key", "user_checkout_stat_id"], name: "index_user_checkout_stat_transitions_on_sort_key_and_stat_id", unique: true
1259
+ add_index "user_checkout_stat_transitions", ["user_checkout_stat_id"], name: "index_user_checkout_stat_transitions_on_user_checkout_stat_id"
1230
1260
 
1231
- create_table "user_checkout_stats", :force => true do |t|
1261
+ create_table "user_checkout_stats", force: true do |t|
1232
1262
  t.datetime "start_date"
1233
1263
  t.datetime "end_date"
1234
1264
  t.text "note"
1235
- t.datetime "created_at", :null => false
1236
- t.datetime "updated_at", :null => false
1265
+ t.datetime "created_at"
1266
+ t.datetime "updated_at"
1237
1267
  t.datetime "started_at"
1238
1268
  t.datetime "completed_at"
1239
1269
  t.integer "user_id"
1240
1270
  end
1241
1271
 
1242
- add_index "user_checkout_stats", ["user_id"], :name => "index_user_checkout_stats_on_user_id"
1272
+ add_index "user_checkout_stats", ["user_id"], name: "index_user_checkout_stats_on_user_id"
1243
1273
 
1244
- create_table "user_export_file_transitions", :force => true do |t|
1274
+ create_table "user_export_file_transitions", force: true do |t|
1245
1275
  t.string "to_state"
1246
- t.text "metadata", :default => "{}"
1276
+ t.text "metadata", default: "{}"
1247
1277
  t.integer "sort_key"
1248
1278
  t.integer "user_export_file_id"
1249
- t.datetime "created_at", :null => false
1250
- t.datetime "updated_at", :null => false
1279
+ t.datetime "created_at"
1280
+ t.datetime "updated_at"
1251
1281
  end
1252
1282
 
1253
- 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
1254
- add_index "user_export_file_transitions", ["user_export_file_id"], :name => "index_user_export_file_transitions_on_file_id"
1283
+ 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
1284
+ add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
1255
1285
 
1256
- create_table "user_export_files", :force => true do |t|
1286
+ create_table "user_export_files", force: true do |t|
1257
1287
  t.integer "user_id"
1258
1288
  t.string "user_export_file_name"
1259
1289
  t.string "user_export_content_type"
1260
1290
  t.integer "user_export_file_size"
1261
1291
  t.datetime "user_export_updated_at"
1262
1292
  t.datetime "executed_at"
1263
- t.datetime "created_at", :null => false
1264
- t.datetime "updated_at", :null => false
1265
- end
1266
-
1267
- create_table "user_group_has_checkout_types", :force => true do |t|
1268
- t.integer "user_group_id", :null => false
1269
- t.integer "checkout_type_id", :null => false
1270
- t.integer "checkout_limit", :default => 0, :null => false
1271
- t.integer "checkout_period", :default => 0, :null => false
1272
- t.integer "checkout_renewal_limit", :default => 0, :null => false
1273
- t.integer "reservation_limit", :default => 0, :null => false
1274
- t.integer "reservation_expired_period", :default => 7, :null => false
1275
- t.boolean "set_due_date_before_closing_day", :default => false, :null => false
1293
+ t.datetime "created_at"
1294
+ t.datetime "updated_at"
1295
+ end
1296
+
1297
+ create_table "user_group_has_checkout_types", force: true do |t|
1298
+ t.integer "user_group_id", null: false
1299
+ t.integer "checkout_type_id", null: false
1300
+ t.integer "checkout_limit", default: 0, null: false
1301
+ t.integer "checkout_period", default: 0, null: false
1302
+ t.integer "checkout_renewal_limit", default: 0, null: false
1303
+ t.integer "reservation_limit", default: 0, null: false
1304
+ t.integer "reservation_expired_period", default: 7, null: false
1305
+ t.boolean "set_due_date_before_closing_day", default: false, null: false
1276
1306
  t.datetime "fixed_due_date"
1277
1307
  t.text "note"
1278
1308
  t.integer "position"
1279
- t.datetime "created_at", :null => false
1280
- t.datetime "updated_at", :null => false
1309
+ t.datetime "created_at"
1310
+ t.datetime "updated_at"
1281
1311
  t.integer "current_checkout_count"
1282
1312
  end
1283
1313
 
1284
- add_index "user_group_has_checkout_types", ["checkout_type_id"], :name => "index_user_group_has_checkout_types_on_checkout_type_id"
1285
- add_index "user_group_has_checkout_types", ["user_group_id"], :name => "index_user_group_has_checkout_types_on_user_group_id"
1314
+ add_index "user_group_has_checkout_types", ["checkout_type_id"], name: "index_user_group_has_checkout_types_on_checkout_type_id"
1315
+ add_index "user_group_has_checkout_types", ["user_group_id"], name: "index_user_group_has_checkout_types_on_user_group_id"
1286
1316
 
1287
- create_table "user_groups", :force => true do |t|
1317
+ create_table "user_groups", force: true do |t|
1288
1318
  t.string "name"
1289
1319
  t.text "display_name"
1290
1320
  t.text "note"
1291
1321
  t.integer "position"
1292
- t.datetime "created_at", :null => false
1293
- t.datetime "updated_at", :null => false
1322
+ t.datetime "created_at"
1323
+ t.datetime "updated_at"
1294
1324
  t.datetime "deleted_at"
1295
- t.integer "valid_period_for_new_user", :default => 0, :null => false
1325
+ t.integer "valid_period_for_new_user", default: 0, null: false
1296
1326
  t.datetime "expired_at"
1297
- t.integer "number_of_day_to_notify_overdue", :default => 1, :null => false
1298
- t.integer "number_of_day_to_notify_due_date", :default => 7, :null => false
1299
- t.integer "number_of_time_to_notify_overdue", :default => 3, :null => false
1327
+ t.integer "number_of_day_to_notify_overdue", default: 1, null: false
1328
+ t.integer "number_of_day_to_notify_due_date", default: 7, null: false
1329
+ t.integer "number_of_time_to_notify_overdue", default: 3, null: false
1300
1330
  end
1301
1331
 
1302
- create_table "user_has_roles", :force => true do |t|
1332
+ create_table "user_has_roles", force: true do |t|
1303
1333
  t.integer "user_id"
1304
1334
  t.integer "role_id"
1305
- t.datetime "created_at", :null => false
1306
- t.datetime "updated_at", :null => false
1335
+ t.datetime "created_at"
1336
+ t.datetime "updated_at"
1307
1337
  end
1308
1338
 
1309
- add_index "user_has_roles", ["role_id"], :name => "index_user_has_roles_on_role_id"
1310
- add_index "user_has_roles", ["user_id"], :name => "index_user_has_roles_on_user_id"
1339
+ add_index "user_has_roles", ["role_id"], name: "index_user_has_roles_on_role_id"
1340
+ add_index "user_has_roles", ["user_id"], name: "index_user_has_roles_on_user_id"
1311
1341
 
1312
- create_table "user_import_file_transitions", :force => true do |t|
1342
+ create_table "user_import_file_transitions", force: true do |t|
1313
1343
  t.string "to_state"
1314
- t.text "metadata", :default => "{}"
1344
+ t.text "metadata", default: "{}"
1315
1345
  t.integer "sort_key"
1316
1346
  t.integer "user_import_file_id"
1317
- t.datetime "created_at", :null => false
1318
- t.datetime "updated_at", :null => false
1347
+ t.datetime "created_at"
1348
+ t.datetime "updated_at"
1319
1349
  end
1320
1350
 
1321
- 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
1322
- add_index "user_import_file_transitions", ["user_import_file_id"], :name => "index_user_import_file_transitions_on_user_import_file_id"
1351
+ 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
1352
+ add_index "user_import_file_transitions", ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
1323
1353
 
1324
- create_table "user_import_files", :force => true do |t|
1354
+ create_table "user_import_files", force: true do |t|
1325
1355
  t.integer "user_id"
1326
1356
  t.text "note"
1327
1357
  t.datetime "executed_at"
@@ -1332,85 +1362,85 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
1332
1362
  t.string "user_import_fingerprint"
1333
1363
  t.string "edit_mode"
1334
1364
  t.text "error_message"
1335
- t.datetime "created_at", :null => false
1336
- t.datetime "updated_at", :null => false
1365
+ t.datetime "created_at"
1366
+ t.datetime "updated_at"
1337
1367
  t.string "user_encoding"
1338
1368
  t.integer "default_library_id"
1339
1369
  t.integer "default_user_group_id"
1340
1370
  end
1341
1371
 
1342
- create_table "user_import_results", :force => true do |t|
1372
+ create_table "user_import_results", force: true do |t|
1343
1373
  t.integer "user_import_file_id"
1344
1374
  t.integer "user_id"
1345
1375
  t.text "body"
1346
- t.datetime "created_at", :null => false
1347
- t.datetime "updated_at", :null => false
1376
+ t.datetime "created_at"
1377
+ t.datetime "updated_at"
1348
1378
  end
1349
1379
 
1350
- create_table "user_reserve_stat_transitions", :force => true do |t|
1380
+ create_table "user_reserve_stat_transitions", force: true do |t|
1351
1381
  t.string "to_state"
1352
- t.text "metadata", :default => "{}"
1382
+ t.text "metadata", default: "{}"
1353
1383
  t.integer "sort_key"
1354
1384
  t.integer "user_reserve_stat_id"
1355
- t.datetime "created_at", :null => false
1356
- t.datetime "updated_at", :null => false
1385
+ t.datetime "created_at"
1386
+ t.datetime "updated_at"
1357
1387
  end
1358
1388
 
1359
- add_index "user_reserve_stat_transitions", ["sort_key", "user_reserve_stat_id"], :name => "index_user_reserve_stat_transitions_on_sort_key_and_stat_id", :unique => true
1360
- add_index "user_reserve_stat_transitions", ["user_reserve_stat_id"], :name => "index_user_reserve_stat_transitions_on_user_reserve_stat_id"
1389
+ add_index "user_reserve_stat_transitions", ["sort_key", "user_reserve_stat_id"], name: "index_user_reserve_stat_transitions_on_sort_key_and_stat_id", unique: true
1390
+ add_index "user_reserve_stat_transitions", ["user_reserve_stat_id"], name: "index_user_reserve_stat_transitions_on_user_reserve_stat_id"
1361
1391
 
1362
- create_table "user_reserve_stats", :force => true do |t|
1392
+ create_table "user_reserve_stats", force: true do |t|
1363
1393
  t.datetime "start_date"
1364
1394
  t.datetime "end_date"
1365
1395
  t.text "note"
1366
- t.datetime "created_at", :null => false
1367
- t.datetime "updated_at", :null => false
1396
+ t.datetime "created_at"
1397
+ t.datetime "updated_at"
1368
1398
  t.datetime "started_at"
1369
1399
  t.datetime "completed_at"
1370
1400
  t.integer "user_id"
1371
1401
  end
1372
1402
 
1373
- add_index "user_reserve_stats", ["user_id"], :name => "index_user_reserve_stats_on_user_id"
1403
+ add_index "user_reserve_stats", ["user_id"], name: "index_user_reserve_stats_on_user_id"
1374
1404
 
1375
- create_table "users", :force => true do |t|
1376
- t.string "email", :default => "", :null => false
1377
- t.string "encrypted_password", :default => "", :null => false
1405
+ create_table "users", force: true do |t|
1406
+ t.string "email", default: "", null: false
1407
+ t.string "encrypted_password", default: "", null: false
1378
1408
  t.string "reset_password_token"
1379
1409
  t.datetime "reset_password_sent_at"
1380
1410
  t.datetime "remember_created_at"
1381
- t.integer "sign_in_count", :default => 0
1411
+ t.integer "sign_in_count", default: 0
1382
1412
  t.datetime "current_sign_in_at"
1383
1413
  t.datetime "last_sign_in_at"
1384
1414
  t.string "current_sign_in_ip"
1385
1415
  t.string "last_sign_in_ip"
1386
- t.datetime "created_at", :null => false
1387
- t.datetime "updated_at", :null => false
1388
- t.boolean "save_checkout_history", :default => false, :null => false
1416
+ t.datetime "created_at"
1417
+ t.datetime "updated_at"
1418
+ t.boolean "save_checkout_history", default: false, null: false
1389
1419
  t.string "checkout_icalendar_token"
1390
1420
  t.string "username"
1391
1421
  t.datetime "deleted_at"
1392
1422
  t.datetime "expired_at"
1393
- t.integer "failed_attempts", :default => 0
1423
+ t.integer "failed_attempts", default: 0
1394
1424
  t.string "unlock_token"
1395
1425
  t.datetime "locked_at"
1396
1426
  t.datetime "confirmed_at"
1397
1427
  end
1398
1428
 
1399
- add_index "users", ["checkout_icalendar_token"], :name => "index_users_on_checkout_icalendar_token", :unique => true
1400
- add_index "users", ["email"], :name => "index_users_on_email"
1401
- add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
1402
- add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true
1403
- add_index "users", ["username"], :name => "index_users_on_username", :unique => true
1429
+ add_index "users", ["checkout_icalendar_token"], name: "index_users_on_checkout_icalendar_token", unique: true
1430
+ add_index "users", ["email"], name: "index_users_on_email"
1431
+ add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
1432
+ add_index "users", ["unlock_token"], name: "index_users_on_unlock_token", unique: true
1433
+ add_index "users", ["username"], name: "index_users_on_username", unique: true
1404
1434
 
1405
- create_table "versions", :force => true do |t|
1406
- t.string "item_type", :null => false
1407
- t.integer "item_id", :null => false
1408
- t.string "event", :null => false
1435
+ create_table "versions", force: true do |t|
1436
+ t.string "item_type", null: false
1437
+ t.integer "item_id", null: false
1438
+ t.string "event", null: false
1409
1439
  t.string "whodunnit"
1410
1440
  t.text "object"
1411
1441
  t.datetime "created_at"
1412
1442
  end
1413
1443
 
1414
- add_index "versions", ["item_type", "item_id"], :name => "index_versions_on_item_type_and_item_id"
1444
+ add_index "versions", ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
1415
1445
 
1416
1446
  end