curate 0.6.4 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/curate/organizations_controller.rb +96 -0
- data/app/helpers/curate/organizations_helper.rb +13 -0
- data/app/helpers/curate_helper.rb +4 -0
- data/app/models/concerns/curate/ability.rb +8 -0
- data/app/models/curate/user_behavior/base.rb +13 -0
- data/app/repository_models/collection.rb +1 -0
- data/app/repository_models/curation_concern/model.rb +1 -0
- data/app/repository_models/organization.rb +17 -0
- data/app/repository_models/person.rb +1 -0
- data/app/repository_models/profile_section.rb +1 -0
- data/app/views/curate/organizations/_button_create_organization.html.erb +1 -0
- data/app/views/curate/organizations/_document_list.html.erb +11 -0
- data/app/views/curate/organizations/_form.html.erb +49 -0
- data/app/views/curate/organizations/_organization.html.erb +24 -0
- data/app/views/curate/organizations/edit.html.erb +4 -0
- data/app/views/curate/organizations/index.html.erb +11 -0
- data/app/views/curate/organizations/new.html.erb +4 -0
- data/app/views/curate/organizations/show.html.erb +27 -0
- data/app/views/organizations/_organization.html.erb +30 -0
- data/app/views/shared/_add_content.html.erb +1 -0
- data/lib/curate/rails/routes.rb +1 -0
- data/lib/curate/version.rb +1 -1
- data/lib/generators/curate/application_template.rb +1 -1
- data/lib/generators/curate/curate_generator.rb +3 -0
- data/spec/abilities/generic_file_abilities_spec.rb +12 -0
- data/spec/abilities/generic_work_abilities_spec.rb +12 -0
- data/spec/controllers/curate/organizations_controller_spec.rb +50 -0
- data/spec/factories/organizations_factory.rb +21 -0
- data/spec/internal/Gemfile +4 -22
- data/spec/internal/Gemfile.lock +1 -376
- data/spec/internal/app/assets/javascripts/application.js +0 -4
- data/spec/internal/app/assets/stylesheets/application.css +0 -1
- data/spec/internal/app/controllers/application_controller.rb +0 -9
- data/spec/internal/config/application.rb +0 -6
- data/spec/internal/config/environments/test.rb +1 -2
- data/spec/internal/config/initializers/mime_types.rb +1 -8
- data/spec/internal/config/initializers/secret_token.rb +1 -1
- data/spec/internal/config/locales/en.yml +20 -11
- data/spec/internal/config/routes.rb +0 -8
- data/spec/internal/db/development.sqlite3 +0 -0
- data/spec/internal/db/schema.rb +1 -216
- data/spec/internal/db/test.sqlite3 +0 -0
- data/spec/internal/lib/generators/test_app_generator.rb +2 -23
- data/spec/internal/log/development.log +4 -323
- data/spec/repository_models/organization_spec.rb +66 -0
- metadata +20 -160
- data/spec/internal/app/assets/images/blacklight/bg.png +0 -0
- data/spec/internal/app/assets/images/blacklight/border.png +0 -0
- data/spec/internal/app/assets/images/blacklight/bul_sq_gry.gif +0 -0
- data/spec/internal/app/assets/images/blacklight/checkmark.gif +0 -0
- data/spec/internal/app/assets/images/blacklight/logo.png +0 -0
- data/spec/internal/app/assets/images/blacklight/magnifying_glass.gif +0 -0
- data/spec/internal/app/assets/images/blacklight/remove.gif +0 -0
- data/spec/internal/app/assets/images/blacklight/separator.gif +0 -0
- data/spec/internal/app/assets/images/blacklight/start_over.gif +0 -0
- data/spec/internal/app/models/ability.rb +0 -20
- data/spec/internal/app/models/solr_document.rb +0 -38
- data/spec/internal/app/models/user.rb +0 -23
- data/spec/internal/config/SolrMarc/config-test.properties +0 -37
- data/spec/internal/config/SolrMarc/config.properties +0 -37
- data/spec/internal/config/SolrMarc/index.properties +0 -97
- data/spec/internal/config/SolrMarc/index_scripts/dewey.bsh +0 -47
- data/spec/internal/config/SolrMarc/index_scripts/format.bsh +0 -126
- data/spec/internal/config/SolrMarc/translation_maps/README_MAPS +0 -1
- data/spec/internal/config/SolrMarc/translation_maps/callnumber_map.properties +0 -407
- data/spec/internal/config/SolrMarc/translation_maps/composition_era_map.properties +0 -56
- data/spec/internal/config/SolrMarc/translation_maps/country_map.properties +0 -379
- data/spec/internal/config/SolrMarc/translation_maps/format_map.properties +0 -50
- data/spec/internal/config/SolrMarc/translation_maps/instrument_map.properties +0 -101
- data/spec/internal/config/SolrMarc/translation_maps/language_map.properties +0 -490
- data/spec/internal/config/doi.yml +0 -5
- data/spec/internal/config/fedora.yml +0 -14
- data/spec/internal/config/initializers/action_dispatch_http_upload_monkey_patch.rb +0 -12
- data/spec/internal/config/initializers/curate_config.rb +0 -24
- data/spec/internal/config/initializers/devise.rb +0 -254
- data/spec/internal/config/initializers/hydra-remote_identifier_config.rb +0 -29
- data/spec/internal/config/initializers/hydra_config.rb +0 -28
- data/spec/internal/config/initializers/mailboxer.rb +0 -17
- data/spec/internal/config/initializers/redis_config.rb +0 -32
- data/spec/internal/config/initializers/resque_admin.rb +0 -10
- data/spec/internal/config/initializers/resque_config.rb +0 -5
- data/spec/internal/config/initializers/sufia.rb +0 -81
- data/spec/internal/config/jetty.yml +0 -5
- data/spec/internal/config/locales/devise.en.yml +0 -59
- data/spec/internal/config/recipients_list.yml +0 -2
- data/spec/internal/config/redis.yml +0 -6
- data/spec/internal/config/role_map_cucumber.yml +0 -10
- data/spec/internal/config/role_map_development.yml +0 -12
- data/spec/internal/config/role_map_production.yml +0 -2
- data/spec/internal/config/role_map_test.yml +0 -15
- data/spec/internal/config/solr.yml +0 -10
- data/spec/internal/db/migrate/20140131175455_devise_create_users.rb +0 -42
- data/spec/internal/db/migrate/20140131175500_add_devise_guests_to_users.rb +0 -15
- data/spec/internal/db/migrate/20140131175501_create_searches.rb +0 -16
- data/spec/internal/db/migrate/20140131175502_create_bookmarks.rb +0 -18
- data/spec/internal/db/migrate/20140131175503_remove_editable_fields_from_bookmarks.rb +0 -12
- data/spec/internal/db/migrate/20140131175504_add_user_types_to_bookmarks_searches.rb +0 -16
- data/spec/internal/db/migrate/20140131175505_acts_as_follower_migration.rb +0 -17
- data/spec/internal/db/migrate/20140131175506_add_social_to_users.rb +0 -13
- data/spec/internal/db/migrate/20140131175507_create_single_use_links.rb +0 -12
- data/spec/internal/db/migrate/20140131175508_add_ldap_attrs_to_user.rb +0 -27
- data/spec/internal/db/migrate/20140131175509_add_avatars_to_users.rb +0 -9
- data/spec/internal/db/migrate/20140131175510_create_checksum_audit_logs.rb +0 -20
- data/spec/internal/db/migrate/20140131175511_create_version_committers.rb +0 -15
- data/spec/internal/db/migrate/20140131175512_add_groups_to_users.rb +0 -11
- data/spec/internal/db/migrate/20140131175513_create_local_authorities.rb +0 -50
- data/spec/internal/db/migrate/20140131175514_create_trophies.rb +0 -10
- data/spec/internal/db/migrate/20140131175536_create_mailboxer.mailboxer_engine.rb +0 -62
- data/spec/internal/db/migrate/20140131175537_add_notified_object.mailboxer_engine.rb +0 -18
- data/spec/internal/db/migrate/20140131175538_add_notification_code.mailboxer_engine.rb +0 -14
- data/spec/internal/db/migrate/20140131175539_add_attachments.mailboxer_engine.rb +0 -10
- data/spec/internal/db/migrate/20140131175540_rename_receipts_read.mailboxer_engine.rb +0 -10
- data/spec/internal/db/migrate/20140131175541_add_global_notification_support.mailboxer_engine.rb +0 -10
- data/spec/internal/db/migrate/20140131175545_add_terms_of_service_to_user.curate_engine.rb +0 -6
- data/spec/internal/db/migrate/20140131175546_add_user_force_update_profile.curate_engine.rb +0 -9
- data/spec/internal/db/migrate/20140131175547_create_help_requests.curate_engine.rb +0 -23
- data/spec/internal/db/migrate/20140131175548_add_repository_id_to_user.curate_engine.rb +0 -7
- data/spec/internal/db/migrate/20140131175549_create_curate_proxy_deposit_rights.curate_engine.rb +0 -12
- data/spec/internal/db/migrate/20140131175550_change_display_name_to_name.curate_engine.rb +0 -7
- data/spec/internal/fedora_conf/conf/development/fedora.fcfg +0 -953
- data/spec/internal/fedora_conf/conf/test/fedora.fcfg +0 -953
- data/spec/internal/solr_conf/conf/schema.xml +0 -273
- data/spec/internal/solr_conf/conf/solrconfig.xml +0 -167
- data/spec/internal/solr_conf/solr.xml +0 -35
- data/spec/internal/test/models/user_test.rb +0 -7
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
class ApplicationController < ActionController::Base
|
|
2
|
-
# Adds a few additional behaviors into the application controller
|
|
3
|
-
include Blacklight::Controller
|
|
4
|
-
include CurateController
|
|
5
|
-
|
|
6
|
-
# Please be sure to impelement current_user and user_session. Blacklight depends on
|
|
7
|
-
# these methods in order to perform user specific actions.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
2
|
# Prevent CSRF attacks by raising an exception.
|
|
12
3
|
# For APIs, you may want to use :null_session instead.
|
|
13
4
|
protect_from_forgery with: :exception
|
|
@@ -8,12 +8,6 @@ Bundler.require(:default, Rails.env)
|
|
|
8
8
|
|
|
9
9
|
module Internal
|
|
10
10
|
class Application < Rails::Application
|
|
11
|
-
|
|
12
|
-
config.generators do |g|
|
|
13
|
-
g.test_framework :rspec, :spec => true
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
|
|
17
11
|
# Settings in config/environments/* take precedence over those specified here.
|
|
18
12
|
# Application configuration should go into files in config/initializers
|
|
19
13
|
# -- all .rb files in that directory are automatically loaded.
|
|
@@ -17,8 +17,7 @@ Internal::Application.configure do
|
|
|
17
17
|
config.static_cache_control = "public, max-age=3600"
|
|
18
18
|
|
|
19
19
|
# Show full error reports and disable caching.
|
|
20
|
-
|
|
21
|
-
config.consider_all_requests_local = ENV['LOCAL'] || false
|
|
20
|
+
config.consider_all_requests_local = true
|
|
22
21
|
config.action_controller.perform_caching = false
|
|
23
22
|
|
|
24
23
|
# Raise exceptions instead of rendering exception templates.
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
|
2
|
-
Mime::Type.register_alias "text/plain", :openurl_kev
|
|
3
|
-
Mime::Type.register "application/x-endnote-refer", :endnote
|
|
4
|
-
Mime::Type.register "application/marc", :marc
|
|
5
|
-
Mime::Type.register "application/marcxml+xml", :marcxml,
|
|
6
|
-
["application/x-marc+xml", "application/x-marcxml+xml",
|
|
7
|
-
"application/marc+xml"]
|
|
8
|
-
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
9
2
|
|
|
10
3
|
# Add new mime types for use in respond_to blocks:
|
|
11
4
|
# Mime::Type.register "text/richtext", :rtf
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
|
|
10
10
|
# Make sure your secret_key_base is kept private
|
|
11
11
|
# if you're sharing your code publicly.
|
|
12
|
-
Internal::Application.config.secret_key_base = '
|
|
12
|
+
Internal::Application.config.secret_key_base = '3a875df6dfcbff88d23fe5786bfc713a8c3035dfbe022af9dfbc6489340c05171c16cc90ec90dda72e8b5c0aabd2d611ee60fc2c4c1aced975affb4c0843a81c'
|
|
@@ -1,14 +1,23 @@
|
|
|
1
|
-
#
|
|
2
|
-
#
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
|
3
|
+
# than English, add the necessary files in this directory.
|
|
4
|
+
#
|
|
5
|
+
# To use the locales, use `I18n.t`:
|
|
6
|
+
#
|
|
7
|
+
# I18n.t 'hello'
|
|
8
|
+
#
|
|
9
|
+
# In views, this is aliased to just `t`:
|
|
10
|
+
#
|
|
11
|
+
# <%= t('hello') %>
|
|
12
|
+
#
|
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
|
14
|
+
#
|
|
15
|
+
# I18n.locale = :es
|
|
16
|
+
#
|
|
17
|
+
# This would use the information in config/locales/es.yml.
|
|
18
|
+
#
|
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
|
3
21
|
|
|
4
22
|
en:
|
|
5
23
|
hello: "Hello world"
|
|
6
|
-
sufia:
|
|
7
|
-
field_label:
|
|
8
|
-
based_near: "Location"
|
|
9
|
-
description: "Abstract or Summary"
|
|
10
|
-
tag: "Keyword"
|
|
11
|
-
date_created: "Date Created"
|
|
12
|
-
related_url: "Related URL"
|
|
13
|
-
rights: "Content License"
|
|
14
|
-
files: "Upload Files"
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
Internal::Application.routes.draw do
|
|
2
|
-
root 'catalog#index'
|
|
3
|
-
Blacklight.add_routes(self)
|
|
4
|
-
HydraHead.add_routes(self)
|
|
5
|
-
devise_for :users, controllers: { sessions: :sessions, registrations: :registrations}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
curate_for
|
|
9
|
-
|
|
10
2
|
# The priority is based upon order of creation: first created -> highest priority.
|
|
11
3
|
# See how all your routes lay out with "rake routes".
|
|
12
4
|
|
|
Binary file
|
data/spec/internal/db/schema.rb
CHANGED
|
@@ -11,221 +11,6 @@
|
|
|
11
11
|
#
|
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
|
13
13
|
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
|
15
|
-
|
|
16
|
-
create_table "bookmarks", force: true do |t|
|
|
17
|
-
t.integer "user_id", null: false
|
|
18
|
-
t.string "document_id"
|
|
19
|
-
t.string "title"
|
|
20
|
-
t.datetime "created_at"
|
|
21
|
-
t.datetime "updated_at"
|
|
22
|
-
t.string "user_type"
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
create_table "checksum_audit_logs", force: true do |t|
|
|
26
|
-
t.string "pid"
|
|
27
|
-
t.string "dsid"
|
|
28
|
-
t.string "version"
|
|
29
|
-
t.integer "pass"
|
|
30
|
-
t.string "expected_result"
|
|
31
|
-
t.string "actual_result"
|
|
32
|
-
t.datetime "created_at"
|
|
33
|
-
t.datetime "updated_at"
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
add_index "checksum_audit_logs", ["pid", "dsid"], name: "by_pid_and_dsid"
|
|
37
|
-
|
|
38
|
-
create_table "conversations", force: true do |t|
|
|
39
|
-
t.string "subject", default: ""
|
|
40
|
-
t.datetime "created_at", null: false
|
|
41
|
-
t.datetime "updated_at", null: false
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
create_table "domain_terms", force: true do |t|
|
|
45
|
-
t.string "model"
|
|
46
|
-
t.string "term"
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
add_index "domain_terms", ["model", "term"], name: "terms_by_model_and_term"
|
|
50
|
-
|
|
51
|
-
create_table "domain_terms_local_authorities", id: false, force: true do |t|
|
|
52
|
-
t.integer "domain_term_id"
|
|
53
|
-
t.integer "local_authority_id"
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
add_index "domain_terms_local_authorities", ["domain_term_id", "local_authority_id"], name: "dtla_by_ids2"
|
|
57
|
-
add_index "domain_terms_local_authorities", ["local_authority_id", "domain_term_id"], name: "dtla_by_ids1"
|
|
58
|
-
|
|
59
|
-
create_table "follows", force: true do |t|
|
|
60
|
-
t.integer "followable_id", null: false
|
|
61
|
-
t.string "followable_type", null: false
|
|
62
|
-
t.integer "follower_id", null: false
|
|
63
|
-
t.string "follower_type", null: false
|
|
64
|
-
t.boolean "blocked", default: false, null: false
|
|
65
|
-
t.datetime "created_at"
|
|
66
|
-
t.datetime "updated_at"
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
add_index "follows", ["followable_id", "followable_type"], name: "fk_followables"
|
|
70
|
-
add_index "follows", ["follower_id", "follower_type"], name: "fk_follows"
|
|
71
|
-
|
|
72
|
-
create_table "help_requests", force: true do |t|
|
|
73
|
-
t.string "view_port"
|
|
74
|
-
t.text "current_url"
|
|
75
|
-
t.string "user_agent"
|
|
76
|
-
t.string "resolution"
|
|
77
|
-
t.text "how_can_we_help_you"
|
|
78
|
-
t.integer "user_id"
|
|
79
|
-
t.boolean "javascript_enabled"
|
|
80
|
-
t.string "release_version"
|
|
81
|
-
t.datetime "created_at"
|
|
82
|
-
t.datetime "updated_at"
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
add_index "help_requests", ["created_at"], name: "index_help_requests_on_created_at"
|
|
86
|
-
add_index "help_requests", ["user_id"], name: "index_help_requests_on_user_id"
|
|
87
|
-
|
|
88
|
-
create_table "local_authorities", force: true do |t|
|
|
89
|
-
t.string "name"
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
create_table "local_authority_entries", force: true do |t|
|
|
93
|
-
t.integer "local_authority_id"
|
|
94
|
-
t.string "label"
|
|
95
|
-
t.string "uri"
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
add_index "local_authority_entries", ["local_authority_id", "label"], name: "entries_by_term_and_label"
|
|
99
|
-
add_index "local_authority_entries", ["local_authority_id", "uri"], name: "entries_by_term_and_uri"
|
|
100
|
-
|
|
101
|
-
create_table "notifications", force: true do |t|
|
|
102
|
-
t.string "type"
|
|
103
|
-
t.text "body"
|
|
104
|
-
t.string "subject", default: ""
|
|
105
|
-
t.integer "sender_id"
|
|
106
|
-
t.string "sender_type"
|
|
107
|
-
t.integer "conversation_id"
|
|
108
|
-
t.boolean "draft", default: false
|
|
109
|
-
t.datetime "updated_at", null: false
|
|
110
|
-
t.datetime "created_at", null: false
|
|
111
|
-
t.integer "notified_object_id"
|
|
112
|
-
t.string "notified_object_type"
|
|
113
|
-
t.string "notification_code"
|
|
114
|
-
t.string "attachment"
|
|
115
|
-
t.boolean "global", default: false
|
|
116
|
-
t.datetime "expires"
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
add_index "notifications", ["conversation_id"], name: "index_notifications_on_conversation_id"
|
|
120
|
-
|
|
121
|
-
create_table "proxy_deposit_rights", force: true do |t|
|
|
122
|
-
t.integer "grantor_id"
|
|
123
|
-
t.integer "grantee_id"
|
|
124
|
-
t.datetime "created_at"
|
|
125
|
-
t.datetime "updated_at"
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
add_index "proxy_deposit_rights", ["grantee_id"], name: "index_proxy_deposit_rights_on_grantee_id"
|
|
129
|
-
add_index "proxy_deposit_rights", ["grantor_id"], name: "index_proxy_deposit_rights_on_grantor_id"
|
|
130
|
-
|
|
131
|
-
create_table "receipts", force: true do |t|
|
|
132
|
-
t.integer "receiver_id"
|
|
133
|
-
t.string "receiver_type"
|
|
134
|
-
t.integer "notification_id", null: false
|
|
135
|
-
t.boolean "is_read", default: false
|
|
136
|
-
t.boolean "trashed", default: false
|
|
137
|
-
t.boolean "deleted", default: false
|
|
138
|
-
t.string "mailbox_type", limit: 25
|
|
139
|
-
t.datetime "created_at", null: false
|
|
140
|
-
t.datetime "updated_at", null: false
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
add_index "receipts", ["notification_id"], name: "index_receipts_on_notification_id"
|
|
144
|
-
|
|
145
|
-
create_table "searches", force: true do |t|
|
|
146
|
-
t.text "query_params"
|
|
147
|
-
t.integer "user_id"
|
|
148
|
-
t.datetime "created_at"
|
|
149
|
-
t.datetime "updated_at"
|
|
150
|
-
t.string "user_type"
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
add_index "searches", ["user_id"], name: "index_searches_on_user_id"
|
|
154
|
-
|
|
155
|
-
create_table "single_use_links", force: true do |t|
|
|
156
|
-
t.string "downloadKey"
|
|
157
|
-
t.string "path"
|
|
158
|
-
t.string "itemId"
|
|
159
|
-
t.datetime "expires"
|
|
160
|
-
t.datetime "created_at"
|
|
161
|
-
t.datetime "updated_at"
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
create_table "subject_local_authority_entries", force: true do |t|
|
|
165
|
-
t.string "label"
|
|
166
|
-
t.string "lowerLabel"
|
|
167
|
-
t.string "url"
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
add_index "subject_local_authority_entries", ["lowerLabel"], name: "entries_by_lower_label"
|
|
171
|
-
|
|
172
|
-
create_table "trophies", force: true do |t|
|
|
173
|
-
t.integer "user_id"
|
|
174
|
-
t.string "generic_file_id"
|
|
175
|
-
t.datetime "created_at"
|
|
176
|
-
t.datetime "updated_at"
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
create_table "users", force: true do |t|
|
|
180
|
-
t.string "email", default: "", null: false
|
|
181
|
-
t.string "encrypted_password", default: "", null: false
|
|
182
|
-
t.string "reset_password_token"
|
|
183
|
-
t.datetime "reset_password_sent_at"
|
|
184
|
-
t.datetime "remember_created_at"
|
|
185
|
-
t.integer "sign_in_count", default: 0, null: false
|
|
186
|
-
t.datetime "current_sign_in_at"
|
|
187
|
-
t.datetime "last_sign_in_at"
|
|
188
|
-
t.string "current_sign_in_ip"
|
|
189
|
-
t.string "last_sign_in_ip"
|
|
190
|
-
t.datetime "created_at"
|
|
191
|
-
t.datetime "updated_at"
|
|
192
|
-
t.boolean "guest", default: false
|
|
193
|
-
t.string "facebook_handle"
|
|
194
|
-
t.string "twitter_handle"
|
|
195
|
-
t.string "googleplus_handle"
|
|
196
|
-
t.string "name"
|
|
197
|
-
t.string "address"
|
|
198
|
-
t.string "admin_area"
|
|
199
|
-
t.string "department"
|
|
200
|
-
t.string "title"
|
|
201
|
-
t.string "office"
|
|
202
|
-
t.string "chat_id"
|
|
203
|
-
t.string "website"
|
|
204
|
-
t.string "affiliation"
|
|
205
|
-
t.string "telephone"
|
|
206
|
-
t.string "avatar_file_name"
|
|
207
|
-
t.string "avatar_content_type"
|
|
208
|
-
t.integer "avatar_file_size"
|
|
209
|
-
t.datetime "avatar_updated_at"
|
|
210
|
-
t.text "group_list"
|
|
211
|
-
t.datetime "groups_last_update"
|
|
212
|
-
t.boolean "agreed_to_terms_of_service"
|
|
213
|
-
t.boolean "user_does_not_require_profile_update", default: false
|
|
214
|
-
t.string "repository_id"
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
add_index "users", ["email"], name: "index_users_on_email", unique: true
|
|
218
|
-
add_index "users", ["name"], name: "index_users_on_name"
|
|
219
|
-
add_index "users", ["repository_id"], name: "index_users_on_repository_id", unique: true
|
|
220
|
-
add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
|
|
221
|
-
|
|
222
|
-
create_table "version_committers", force: true do |t|
|
|
223
|
-
t.string "obj_id"
|
|
224
|
-
t.string "datastream_id"
|
|
225
|
-
t.string "version_id"
|
|
226
|
-
t.string "committer_login"
|
|
227
|
-
t.datetime "created_at"
|
|
228
|
-
t.datetime "updated_at"
|
|
229
|
-
end
|
|
14
|
+
ActiveRecord::Schema.define(version: 0) do
|
|
230
15
|
|
|
231
16
|
end
|
|
Binary file
|
|
@@ -1,27 +1,6 @@
|
|
|
1
1
|
require 'rails/generators'
|
|
2
2
|
|
|
3
3
|
class TestAppGenerator < Rails::Generators::Base
|
|
4
|
-
source_root
|
|
5
|
-
|
|
6
|
-
def run_curate_generator
|
|
7
|
-
say_status("warning", "GENERATING CURATE", :yellow)
|
|
8
|
-
|
|
9
|
-
generate 'curate', '-f --with-doi'
|
|
10
|
-
|
|
11
|
-
gsub_file('config/environments/test.rb', /^.*config\.consider_all_requests_local.*$/) do |match|
|
|
12
|
-
match = " # For end to end specs, I want the exception handler capturing things; Not raising exceptions.\n config.consider_all_requests_local = ENV['LOCAL'] || false"
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
inject_into_file 'config/initializers/curate_config.rb', after: "Curate.configure do |config|\n" do
|
|
16
|
-
<<-EOV
|
|
17
|
-
config.application_root_url = 'http://localhost'
|
|
18
|
-
config.default_antivirus_instance = lambda {|file_path|
|
|
19
|
-
AntiVirusScanner::NO_VIRUS_FOUND_RETURN_VALUE
|
|
20
|
-
}
|
|
21
|
-
config.characterization_runner = lambda {|file_path|
|
|
22
|
-
Curate::Engine.root.join('spec/support/files/default_fits_output.xml').read
|
|
23
|
-
}
|
|
24
|
-
EOV
|
|
25
|
-
end
|
|
26
|
-
end
|
|
4
|
+
source_root "spec/test_app_templates"
|
|
27
5
|
end
|
|
6
|
+
|
|
@@ -1,328 +1,9 @@
|
|
|
1
1
|
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
2
2
|
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
6
|
-
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
7
|
-
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
8
|
-
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
9
|
-
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
10
|
-
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
11
|
-
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
12
|
-
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
13
|
-
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
14
|
-
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
15
|
-
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
16
|
-
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
17
|
-
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
18
|
-
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
19
|
-
[1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
|
20
|
-
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
21
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
22
|
-
Migrating to DeviseCreateUsers (20140131175455)
|
|
23
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
24
|
-
[1m[36m (0.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
25
|
-
[1m[35m (0.3ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
|
26
|
-
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
|
27
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140131175455"]]
|
|
28
|
-
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
29
|
-
Migrating to AddDeviseGuestsToUsers (20140131175500)
|
|
30
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
31
|
-
[1m[36m (0.3ms)[0m [1mALTER TABLE "users" ADD "guest" boolean DEFAULT 'f'[0m
|
|
32
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140131175500"]]
|
|
33
|
-
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
34
|
-
Migrating to CreateSearches (20140131175501)
|
|
35
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
36
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "searches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "query_params" text, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
|
37
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_searches_on_user_id" ON "searches" ("user_id")
|
|
38
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140131175501"]]
|
|
39
|
-
[1m[35m (1.0ms)[0m commit transaction
|
|
40
|
-
Migrating to CreateBookmarks (20140131175502)
|
|
41
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
42
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "bookmarks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "url" text, "document_id" varchar(255), "title" varchar(255), "notes" text, "created_at" datetime, "updated_at" datetime)
|
|
43
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140131175502"]]
|
|
44
|
-
[1m[35m (0.8ms)[0m commit transaction
|
|
45
|
-
Migrating to RemoveEditableFieldsFromBookmarks (20140131175503)
|
|
46
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
47
|
-
[1m[35m (0.4ms)[0m CREATE TEMPORARY TABLE "abookmarks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "url" text, "document_id" varchar(255), "title" varchar(255), "notes" text, "created_at" datetime, "updated_at" datetime)
|
|
48
|
-
[1m[36m (0.1ms)[0m [1mSELECT * FROM "bookmarks"[0m
|
|
49
|
-
[1m[35m (0.3ms)[0m DROP TABLE "bookmarks"
|
|
50
|
-
[1m[36m (0.1ms)[0m [1mCREATE TABLE "bookmarks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "url" text, "document_id" varchar(255), "title" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
51
|
-
[1m[35m (0.1ms)[0m SELECT * FROM "abookmarks"
|
|
52
|
-
[1m[36m (0.3ms)[0m [1mDROP TABLE "abookmarks"[0m
|
|
53
|
-
[1m[35m (0.1ms)[0m CREATE TEMPORARY TABLE "abookmarks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "url" text, "document_id" varchar(255), "title" varchar(255), "created_at" datetime, "updated_at" datetime)
|
|
54
|
-
[1m[36m (0.1ms)[0m [1mSELECT * FROM "bookmarks"[0m
|
|
55
|
-
[1m[35m (0.2ms)[0m DROP TABLE "bookmarks"
|
|
56
|
-
[1m[36m (0.1ms)[0m [1mCREATE TABLE "bookmarks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "document_id" varchar(255), "title" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
57
|
-
[1m[35m (0.1ms)[0m SELECT * FROM "abookmarks"
|
|
58
|
-
[1m[36m (0.1ms)[0m [1mDROP TABLE "abookmarks"[0m
|
|
59
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140131175503"]]
|
|
60
|
-
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
61
|
-
Migrating to AddUserTypesToBookmarksSearches (20140131175504)
|
|
62
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
63
|
-
[1m[36m (0.3ms)[0m [1mALTER TABLE "searches" ADD "user_type" varchar(255)[0m
|
|
64
|
-
[1m[35m (0.2ms)[0m ALTER TABLE "bookmarks" ADD "user_type" varchar(255)
|
|
65
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "searches" SET user_type = 'user'[0m
|
|
66
|
-
[1m[35mSQL (0.0ms)[0m UPDATE "bookmarks" SET user_type = 'user'
|
|
67
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140131175504"]]
|
|
68
|
-
[1m[35m (1.0ms)[0m commit transaction
|
|
69
|
-
Migrating to ActsAsFollowerMigration (20140131175505)
|
|
70
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
71
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "follows" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followable_id" integer NOT NULL, "followable_type" varchar(255) NOT NULL, "follower_id" integer NOT NULL, "follower_type" varchar(255) NOT NULL, "blocked" boolean DEFAULT 'f' NOT NULL, "created_at" datetime, "updated_at" datetime)
|
|
72
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "fk_follows" ON "follows" ("follower_id", "follower_type")[0m
|
|
73
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "fk_followables" ON "follows" ("followable_id", "followable_type")
|
|
74
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140131175505"]]
|
|
75
|
-
[1m[35m (0.6ms)[0m commit transaction
|
|
76
|
-
Migrating to AddSocialToUsers (20140131175506)
|
|
77
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
78
|
-
[1m[35m (0.3ms)[0m ALTER TABLE "users" ADD "facebook_handle" varchar(255)
|
|
79
|
-
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD "twitter_handle" varchar(255)[0m
|
|
80
|
-
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD "googleplus_handle" varchar(255)
|
|
81
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140131175506"]]
|
|
82
|
-
[1m[35m (0.9ms)[0m commit transaction
|
|
83
|
-
Migrating to CreateSingleUseLinks (20140131175507)
|
|
84
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
85
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "single_use_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "downloadKey" varchar(255), "path" varchar(255), "itemId" varchar(255), "expires" datetime, "created_at" datetime, "updated_at" datetime)
|
|
86
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140131175507"]]
|
|
87
|
-
[1m[35m (0.7ms)[0m commit transaction
|
|
88
|
-
Migrating to AddLdapAttrsToUser (20140131175508)
|
|
89
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
90
|
-
[1m[35m (0.3ms)[0m ALTER TABLE "users" ADD "display_name" varchar(255)
|
|
91
|
-
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD "address" varchar(255)[0m
|
|
92
|
-
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD "admin_area" varchar(255)
|
|
93
|
-
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD "department" varchar(255)[0m
|
|
94
|
-
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD "title" varchar(255)
|
|
95
|
-
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD "office" varchar(255)[0m
|
|
96
|
-
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD "chat_id" varchar(255)
|
|
97
|
-
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD "website" varchar(255)[0m
|
|
98
|
-
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD "affiliation" varchar(255)
|
|
99
|
-
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD "telephone" varchar(255)[0m
|
|
100
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140131175508"]]
|
|
101
|
-
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
102
|
-
Migrating to AddAvatarsToUsers (20140131175509)
|
|
103
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
104
|
-
[1m[36m (0.4ms)[0m [1mALTER TABLE "users" ADD "avatar_file_name" varchar(255)[0m
|
|
105
|
-
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD "avatar_content_type" varchar(255)
|
|
106
|
-
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD "avatar_file_size" integer[0m
|
|
107
|
-
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD "avatar_updated_at" datetime
|
|
108
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140131175509"]]
|
|
109
|
-
[1m[35m (0.9ms)[0m commit transaction
|
|
110
|
-
Migrating to CreateChecksumAuditLogs (20140131175510)
|
|
111
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
112
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "checksum_audit_logs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "pid" varchar(255), "dsid" varchar(255), "version" varchar(255), "pass" integer, "expected_result" varchar(255), "actual_result" varchar(255), "created_at" datetime, "updated_at" datetime)
|
|
113
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "by_pid_and_dsid" ON "checksum_audit_logs" ("pid", "dsid")[0m
|
|
114
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140131175510"]]
|
|
115
|
-
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
116
|
-
Migrating to CreateVersionCommitters (20140131175511)
|
|
117
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
118
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "version_committers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "obj_id" varchar(255), "datastream_id" varchar(255), "version_id" varchar(255), "committer_login" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
119
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140131175511"]]
|
|
120
|
-
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
|
121
|
-
Migrating to AddGroupsToUsers (20140131175512)
|
|
122
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
123
|
-
[1m[36m (0.4ms)[0m [1mALTER TABLE "users" ADD "group_list" text[0m
|
|
124
|
-
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD "groups_last_update" datetime
|
|
125
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140131175512"]]
|
|
126
|
-
[1m[35m (1.0ms)[0m commit transaction
|
|
127
|
-
Migrating to CreateLocalAuthorities (20140131175513)
|
|
128
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
129
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "local_authority_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "local_authority_id" integer, "label" varchar(255), "uri" varchar(255))
|
|
130
|
-
[1m[36m (0.1ms)[0m [1mCREATE TABLE "local_authorities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
|
131
|
-
[1m[35m (0.1ms)[0m CREATE TABLE "domain_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar(255), "term" varchar(255))
|
|
132
|
-
[1m[36m (0.1ms)[0m [1mCREATE TABLE "domain_terms_local_authorities" ("domain_term_id" integer, "local_authority_id" integer) [0m
|
|
133
|
-
[1m[35m (0.1ms)[0m CREATE TABLE "subject_local_authority_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar(255), "lowerLabel" varchar(255), "url" varchar(255))
|
|
134
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "entries_by_term_and_label" ON "local_authority_entries" ("local_authority_id", "label")[0m
|
|
135
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "entries_by_term_and_uri" ON "local_authority_entries" ("local_authority_id", "uri")
|
|
136
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "terms_by_model_and_term" ON "domain_terms" ("model", "term")[0m
|
|
137
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "dtla_by_ids1" ON "domain_terms_local_authorities" ("local_authority_id", "domain_term_id")
|
|
138
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "dtla_by_ids2" ON "domain_terms_local_authorities" ("domain_term_id", "local_authority_id")[0m
|
|
139
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "entries_by_lower_label" ON "subject_local_authority_entries" ("lowerLabel")
|
|
140
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140131175513"]]
|
|
141
|
-
[1m[35m (0.8ms)[0m commit transaction
|
|
142
|
-
Migrating to CreateTrophies (20140131175514)
|
|
143
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
144
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "trophies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "generic_file_id" varchar(255), "created_at" datetime, "updated_at" datetime)
|
|
145
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140131175514"]]
|
|
146
|
-
[1m[35m (0.7ms)[0m commit transaction
|
|
147
|
-
Migrating to CreateMailboxer (20140131175536)
|
|
148
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
149
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "conversations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255) DEFAULT '', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
|
150
|
-
[1m[36m (0.2ms)[0m [1mCREATE TABLE "receipts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar(255), "notification_id" integer NOT NULL, "read" boolean DEFAULT 'f', "trashed" boolean DEFAULT 'f', "deleted" boolean DEFAULT 'f', "mailbox_type" varchar(25), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
151
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "body" text, "subject" varchar(255) DEFAULT '', "sender_id" integer, "sender_type" varchar(255), "object_id" integer, "object_type" varchar(255), "conversation_id" integer, "draft" boolean DEFAULT 'f', "updated_at" datetime NOT NULL, "created_at" datetime NOT NULL)
|
|
152
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_receipts_on_notification_id" ON "receipts" ("notification_id")[0m
|
|
153
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_notifications_on_conversation_id" ON "notifications" ("conversation_id")
|
|
154
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140131175536"]]
|
|
155
|
-
[1m[35m (1.0ms)[0m commit transaction
|
|
156
|
-
Migrating to AddNotifiedObject (20140131175537)
|
|
157
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
158
|
-
[1m[35m (0.3ms)[0m ALTER TABLE "notifications" ADD "notified_object_id" integer
|
|
159
|
-
[1m[36m (0.2ms)[0m [1mALTER TABLE "notifications" ADD "notified_object_type" varchar(255)[0m
|
|
160
|
-
[1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "anotifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "body" text, "subject" varchar(255) DEFAULT '', "sender_id" integer, "sender_type" varchar(255), "object_id" integer, "object_type" varchar(255), "conversation_id" integer, "draft" boolean DEFAULT 'f', "updated_at" datetime NOT NULL, "created_at" datetime NOT NULL, "notified_object_id" integer, "notified_object_type" varchar(255))
|
|
161
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_anotifications_on_conversation_id" ON "anotifications" ("conversation_id")[0m
|
|
162
|
-
[1m[35m (0.1ms)[0m SELECT * FROM "notifications"
|
|
163
|
-
[1m[36m (0.3ms)[0m [1mDROP TABLE "notifications"[0m
|
|
164
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "body" text, "subject" varchar(255) DEFAULT '', "sender_id" integer, "sender_type" varchar(255), "object_type" varchar(255), "conversation_id" integer, "draft" boolean DEFAULT 'f', "updated_at" datetime NOT NULL, "created_at" datetime NOT NULL, "notified_object_id" integer, "notified_object_type" varchar(255))
|
|
165
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_notifications_on_conversation_id" ON "notifications" ("conversation_id")[0m
|
|
166
|
-
[1m[35m (0.1ms)[0m SELECT * FROM "anotifications"
|
|
167
|
-
[1m[36m (0.1ms)[0m [1mDROP TABLE "anotifications"[0m
|
|
168
|
-
[1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "anotifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "body" text, "subject" varchar(255) DEFAULT '', "sender_id" integer, "sender_type" varchar(255), "object_type" varchar(255), "conversation_id" integer, "draft" boolean DEFAULT 'f', "updated_at" datetime NOT NULL, "created_at" datetime NOT NULL, "notified_object_id" integer, "notified_object_type" varchar(255))
|
|
169
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_anotifications_on_conversation_id" ON "anotifications" ("conversation_id")[0m
|
|
170
|
-
[1m[35m (0.1ms)[0m SELECT * FROM "notifications"
|
|
171
|
-
[1m[36m (0.2ms)[0m [1mDROP TABLE "notifications"[0m
|
|
172
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "body" text, "subject" varchar(255) DEFAULT '', "sender_id" integer, "sender_type" varchar(255), "conversation_id" integer, "draft" boolean DEFAULT 'f', "updated_at" datetime NOT NULL, "created_at" datetime NOT NULL, "notified_object_id" integer, "notified_object_type" varchar(255))
|
|
173
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_notifications_on_conversation_id" ON "notifications" ("conversation_id")[0m
|
|
174
|
-
[1m[35m (0.1ms)[0m SELECT * FROM "anotifications"
|
|
175
|
-
[1m[36m (0.1ms)[0m [1mDROP TABLE "anotifications"[0m
|
|
176
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140131175537"]]
|
|
177
|
-
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
178
|
-
Migrating to AddNotificationCode (20140131175538)
|
|
179
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
180
|
-
[1m[36m (0.3ms)[0m [1mALTER TABLE "notifications" ADD "notification_code" varchar(255)[0m
|
|
181
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140131175538"]]
|
|
182
|
-
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
|
183
|
-
Migrating to AddAttachments (20140131175539)
|
|
184
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
185
|
-
[1m[36m (0.3ms)[0m [1mALTER TABLE "notifications" ADD "attachment" varchar(255)[0m
|
|
186
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140131175539"]]
|
|
187
|
-
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
|
188
|
-
Migrating to RenameReceiptsRead (20140131175540)
|
|
189
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
190
|
-
[1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "areceipts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar(255), "notification_id" integer NOT NULL, "is_read" boolean DEFAULT 'f', "trashed" boolean DEFAULT 'f', "deleted" boolean DEFAULT 'f', "mailbox_type" varchar(25), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
191
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "tindex_areceipts_on_notification_id" ON "areceipts" ("notification_id")
|
|
192
|
-
[1m[36m (0.1ms)[0m [1mSELECT * FROM "receipts"[0m
|
|
193
|
-
[1m[35m (0.3ms)[0m DROP TABLE "receipts"
|
|
194
|
-
[1m[36m (0.2ms)[0m [1mCREATE TABLE "receipts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar(255), "notification_id" integer NOT NULL, "is_read" boolean DEFAULT 'f', "trashed" boolean DEFAULT 'f', "deleted" boolean DEFAULT 'f', "mailbox_type" varchar(25), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
195
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_receipts_on_notification_id" ON "receipts" ("notification_id")
|
|
196
|
-
[1m[36m (0.1ms)[0m [1mSELECT * FROM "areceipts"[0m
|
|
197
|
-
[1m[35m (0.1ms)[0m DROP TABLE "areceipts"
|
|
198
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140131175540"]]
|
|
199
|
-
[1m[35m (0.7ms)[0m commit transaction
|
|
200
|
-
Migrating to AddGlobalNotificationSupport (20140131175541)
|
|
201
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
202
|
-
[1m[35m (0.4ms)[0m ALTER TABLE "notifications" ADD "global" boolean DEFAULT 'f'
|
|
203
|
-
[1m[36m (0.2ms)[0m [1mALTER TABLE "notifications" ADD "expires" datetime[0m
|
|
204
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140131175541"]]
|
|
205
|
-
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
206
|
-
Migrating to AddTermsOfServiceToUser (20140131175545)
|
|
207
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
208
|
-
[1m[36m (0.4ms)[0m [1mALTER TABLE "users" ADD "agreed_to_terms_of_service" boolean[0m
|
|
209
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140131175545"]]
|
|
210
|
-
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
|
211
|
-
Migrating to AddUserForceUpdateProfile (20140131175546)
|
|
212
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
213
|
-
[1m[36m (0.4ms)[0m [1mALTER TABLE "users" ADD "user_does_not_require_profile_update" boolean DEFAULT 'f'[0m
|
|
214
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140131175546"]]
|
|
215
|
-
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
216
|
-
Migrating to CreateHelpRequests (20140131175547)
|
|
217
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
218
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "help_requests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "view_port" varchar(255), "current_url" text, "user_agent" varchar(255), "resolution" varchar(255), "how_can_we_help_you" text, "user_id" integer, "javascript_enabled" boolean, "release_version" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
219
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_help_requests_on_user_id" ON "help_requests" ("user_id")
|
|
220
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_help_requests_on_created_at" ON "help_requests" ("created_at")[0m
|
|
221
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140131175547"]]
|
|
222
|
-
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
223
|
-
Migrating to AddRepositoryIdToUser (20140131175548)
|
|
224
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
225
|
-
[1m[36m (0.4ms)[0m [1mALTER TABLE "users" ADD "repository_id" varchar(255)[0m
|
|
226
|
-
[1m[35m (0.4ms)[0m CREATE UNIQUE INDEX "index_users_on_repository_id" ON "users" ("repository_id")
|
|
227
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140131175548"]]
|
|
228
|
-
[1m[35m (0.8ms)[0m commit transaction
|
|
229
|
-
Migrating to CreateCurateProxyDepositRights (20140131175549)
|
|
230
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
231
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "proxy_deposit_rights" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "grantor_id" integer, "grantee_id" integer, "created_at" datetime, "updated_at" datetime)
|
|
232
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_proxy_deposit_rights_on_grantor_id" ON "proxy_deposit_rights" ("grantor_id")[0m
|
|
233
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_proxy_deposit_rights_on_grantee_id" ON "proxy_deposit_rights" ("grantee_id")
|
|
234
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140131175549"]]
|
|
235
|
-
[1m[35m (1.0ms)[0m commit transaction
|
|
236
|
-
Migrating to ChangeDisplayNameToName (20140131175550)
|
|
237
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
238
|
-
[1m[35m (0.4ms)[0m CREATE TEMPORARY TABLE "ausers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime, "updated_at" datetime, "guest" boolean DEFAULT 'f', "facebook_handle" varchar(255), "twitter_handle" varchar(255), "googleplus_handle" varchar(255), "name" varchar(255), "address" varchar(255), "admin_area" varchar(255), "department" varchar(255), "title" varchar(255), "office" varchar(255), "chat_id" varchar(255), "website" varchar(255), "affiliation" varchar(255), "telephone" varchar(255), "avatar_file_name" varchar(255), "avatar_content_type" varchar(255), "avatar_file_size" integer, "avatar_updated_at" datetime, "group_list" text, "groups_last_update" datetime, "agreed_to_terms_of_service" boolean, "user_does_not_require_profile_update" boolean DEFAULT 'f', "repository_id" varchar(255))
|
|
239
|
-
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "tindex_ausers_on_repository_id" ON "ausers" ("repository_id")[0m
|
|
240
|
-
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "tindex_ausers_on_reset_password_token" ON "ausers" ("reset_password_token")
|
|
241
|
-
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "tindex_ausers_on_email" ON "ausers" ("email")[0m
|
|
242
|
-
[1m[35m (0.1ms)[0m SELECT * FROM "users"
|
|
243
|
-
[1m[36m (0.3ms)[0m [1mDROP TABLE "users"[0m
|
|
244
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime, "updated_at" datetime, "guest" boolean DEFAULT 'f', "facebook_handle" varchar(255), "twitter_handle" varchar(255), "googleplus_handle" varchar(255), "name" varchar(255), "address" varchar(255), "admin_area" varchar(255), "department" varchar(255), "title" varchar(255), "office" varchar(255), "chat_id" varchar(255), "website" varchar(255), "affiliation" varchar(255), "telephone" varchar(255), "avatar_file_name" varchar(255), "avatar_content_type" varchar(255), "avatar_file_size" integer, "avatar_updated_at" datetime, "group_list" text, "groups_last_update" datetime, "agreed_to_terms_of_service" boolean, "user_does_not_require_profile_update" boolean DEFAULT 'f', "repository_id" varchar(255))
|
|
245
|
-
[1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
|
246
|
-
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
|
|
247
|
-
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_repository_id" ON "users" ("repository_id")[0m
|
|
248
|
-
[1m[35m (0.1ms)[0m SELECT * FROM "ausers"
|
|
249
|
-
[1m[36m (0.2ms)[0m [1mDROP TABLE "ausers"[0m
|
|
250
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_users_on_name" ON "users" ("name")
|
|
251
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140131175550"]]
|
|
252
|
-
[1m[35m (1.6ms)[0m commit transaction
|
|
253
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
254
|
-
Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
|
|
255
|
-
[1m[36mLocalAuthority Load (0.2ms)[0m [1mSELECT "local_authorities".* FROM "local_authorities" WHERE "local_authorities"."name" = 'lc_subjects' LIMIT 1[0m
|
|
256
|
-
[1m[35mLocalAuthority Load (0.1ms)[0m SELECT "local_authorities".* FROM "local_authorities" WHERE "local_authorities"."name" = 'lexvo_languages' LIMIT 1
|
|
257
|
-
[1m[36mLocalAuthority Load (0.1ms)[0m [1mSELECT "local_authorities".* FROM "local_authorities" WHERE "local_authorities"."name" = 'lc_genres' LIMIT 1[0m
|
|
258
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
3
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
|
4
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
259
5
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
260
|
-
[1m[35m (1.1ms)[0m CREATE TABLE "
|
|
261
|
-
[1m[36m (0.8ms)[0m [1mCREATE TABLE "checksum_audit_logs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "pid" varchar(255), "dsid" varchar(255), "version" varchar(255), "pass" integer, "expected_result" varchar(255), "actual_result" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
262
|
-
[1m[35m (0.7ms)[0m CREATE INDEX "by_pid_and_dsid" ON "checksum_audit_logs" ("pid", "dsid")
|
|
263
|
-
[1m[36m (0.8ms)[0m [1mCREATE TABLE "conversations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255) DEFAULT '', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
264
|
-
[1m[35m (0.6ms)[0m CREATE TABLE "domain_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model" varchar(255), "term" varchar(255))
|
|
265
|
-
[1m[36m (0.9ms)[0m [1mCREATE INDEX "terms_by_model_and_term" ON "domain_terms" ("model", "term")[0m
|
|
266
|
-
[1m[35m (0.8ms)[0m CREATE TABLE "domain_terms_local_authorities" ("domain_term_id" integer, "local_authority_id" integer)
|
|
267
|
-
[1m[36m (0.7ms)[0m [1mCREATE INDEX "dtla_by_ids2" ON "domain_terms_local_authorities" ("domain_term_id", "local_authority_id")[0m
|
|
268
|
-
[1m[35m (0.7ms)[0m CREATE INDEX "dtla_by_ids1" ON "domain_terms_local_authorities" ("local_authority_id", "domain_term_id")
|
|
269
|
-
[1m[36m (1.0ms)[0m [1mCREATE TABLE "follows" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "followable_id" integer NOT NULL, "followable_type" varchar(255) NOT NULL, "follower_id" integer NOT NULL, "follower_type" varchar(255) NOT NULL, "blocked" boolean DEFAULT 'f' NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
|
270
|
-
[1m[35m (0.8ms)[0m CREATE INDEX "fk_followables" ON "follows" ("followable_id", "followable_type")
|
|
271
|
-
[1m[36m (0.7ms)[0m [1mCREATE INDEX "fk_follows" ON "follows" ("follower_id", "follower_type")[0m
|
|
272
|
-
[1m[35m (0.9ms)[0m CREATE TABLE "help_requests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "view_port" varchar(255), "current_url" text, "user_agent" varchar(255), "resolution" varchar(255), "how_can_we_help_you" text, "user_id" integer, "javascript_enabled" boolean, "release_version" varchar(255), "created_at" datetime, "updated_at" datetime)
|
|
273
|
-
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_help_requests_on_created_at" ON "help_requests" ("created_at")[0m
|
|
274
|
-
[1m[35m (0.9ms)[0m CREATE INDEX "index_help_requests_on_user_id" ON "help_requests" ("user_id")
|
|
275
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "local_authorities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
|
276
|
-
[1m[35m (0.9ms)[0m CREATE TABLE "local_authority_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "local_authority_id" integer, "label" varchar(255), "uri" varchar(255))
|
|
277
|
-
[1m[36m (0.8ms)[0m [1mCREATE INDEX "entries_by_term_and_label" ON "local_authority_entries" ("local_authority_id", "label")[0m
|
|
278
|
-
[1m[35m (0.9ms)[0m CREATE INDEX "entries_by_term_and_uri" ON "local_authority_entries" ("local_authority_id", "uri")
|
|
279
|
-
[1m[36m (1.1ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "body" text, "subject" varchar(255) DEFAULT '', "sender_id" integer, "sender_type" varchar(255), "conversation_id" integer, "draft" boolean DEFAULT 'f', "updated_at" datetime NOT NULL, "created_at" datetime NOT NULL, "notified_object_id" integer, "notified_object_type" varchar(255), "notification_code" varchar(255), "attachment" varchar(255), "global" boolean DEFAULT 'f', "expires" datetime) [0m
|
|
280
|
-
[1m[35m (0.7ms)[0m CREATE INDEX "index_notifications_on_conversation_id" ON "notifications" ("conversation_id")
|
|
281
|
-
[1m[36m (1.0ms)[0m [1mCREATE TABLE "proxy_deposit_rights" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "grantor_id" integer, "grantee_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
|
282
|
-
[1m[35m (0.9ms)[0m CREATE INDEX "index_proxy_deposit_rights_on_grantee_id" ON "proxy_deposit_rights" ("grantee_id")
|
|
283
|
-
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_proxy_deposit_rights_on_grantor_id" ON "proxy_deposit_rights" ("grantor_id")[0m
|
|
284
|
-
[1m[35m (0.8ms)[0m CREATE TABLE "receipts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar(255), "notification_id" integer NOT NULL, "is_read" boolean DEFAULT 'f', "trashed" boolean DEFAULT 'f', "deleted" boolean DEFAULT 'f', "mailbox_type" varchar(25), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
|
285
|
-
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_receipts_on_notification_id" ON "receipts" ("notification_id")[0m
|
|
286
|
-
[1m[35m (1.1ms)[0m CREATE TABLE "searches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "query_params" text, "user_id" integer, "created_at" datetime, "updated_at" datetime, "user_type" varchar(255))
|
|
287
|
-
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_searches_on_user_id" ON "searches" ("user_id")[0m
|
|
288
|
-
[1m[35m (0.8ms)[0m CREATE TABLE "single_use_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "downloadKey" varchar(255), "path" varchar(255), "itemId" varchar(255), "expires" datetime, "created_at" datetime, "updated_at" datetime)
|
|
289
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "subject_local_authority_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar(255), "lowerLabel" varchar(255), "url" varchar(255)) [0m
|
|
290
|
-
[1m[35m (1.1ms)[0m CREATE INDEX "entries_by_lower_label" ON "subject_local_authority_entries" ("lowerLabel")
|
|
291
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "trophies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "generic_file_id" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
292
|
-
[1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime, "updated_at" datetime, "guest" boolean DEFAULT 'f', "facebook_handle" varchar(255), "twitter_handle" varchar(255), "googleplus_handle" varchar(255), "name" varchar(255), "address" varchar(255), "admin_area" varchar(255), "department" varchar(255), "title" varchar(255), "office" varchar(255), "chat_id" varchar(255), "website" varchar(255), "affiliation" varchar(255), "telephone" varchar(255), "avatar_file_name" varchar(255), "avatar_content_type" varchar(255), "avatar_file_size" integer, "avatar_updated_at" datetime, "group_list" text, "groups_last_update" datetime, "agreed_to_terms_of_service" boolean, "user_does_not_require_profile_update" boolean DEFAULT 'f', "repository_id" varchar(255))
|
|
293
|
-
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
|
294
|
-
[1m[35m (0.7ms)[0m CREATE INDEX "index_users_on_name" ON "users" ("name")
|
|
295
|
-
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_repository_id" ON "users" ("repository_id")[0m
|
|
296
|
-
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
|
|
297
|
-
[1m[36m (1.0ms)[0m [1mCREATE TABLE "version_committers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "obj_id" varchar(255), "datastream_id" varchar(255), "version_id" varchar(255), "committer_login" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
298
|
-
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
|
6
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
|
299
7
|
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
300
8
|
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
|
301
|
-
[1m[36m (0.
|
|
302
|
-
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140131175455')
|
|
303
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140131175500')[0m
|
|
304
|
-
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140131175501')
|
|
305
|
-
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140131175502')[0m
|
|
306
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140131175503')
|
|
307
|
-
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140131175504')[0m
|
|
308
|
-
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140131175505')
|
|
309
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140131175506')[0m
|
|
310
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140131175507')
|
|
311
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140131175508')[0m
|
|
312
|
-
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140131175509')
|
|
313
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140131175510')[0m
|
|
314
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140131175511')
|
|
315
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140131175512')[0m
|
|
316
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140131175513')
|
|
317
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140131175514')[0m
|
|
318
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140131175536')
|
|
319
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140131175537')[0m
|
|
320
|
-
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140131175538')
|
|
321
|
-
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140131175539')[0m
|
|
322
|
-
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140131175540')
|
|
323
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140131175541')[0m
|
|
324
|
-
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140131175545')
|
|
325
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140131175546')[0m
|
|
326
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140131175547')
|
|
327
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140131175548')[0m
|
|
328
|
-
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140131175549')
|
|
9
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|