ddr-models 1.16.2 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f85c2f0e45408ea9a86886fe8c0148b8f5bb08c6
4
- data.tar.gz: a144f8b5fe2b58ea86b3b2698394b15062a318ab
3
+ metadata.gz: b0ba99e56128f43536c5f1b98b3e7bc7620da398
4
+ data.tar.gz: 221c7e01dbee7d3ffdbe8b67781b74b83ca4105f
5
5
  SHA512:
6
- metadata.gz: 8c60db70c9ce811c532668b1ec84d6da2a5bf235a7a18b2a7658769de6974a912e3a83698490f5f962f72e77e70de378acb1e7b6c41dd1da6e4551289ea9de0f
7
- data.tar.gz: 21bb80e946f3ee77cd84f50c695c98d47525a3a5b3c34cd3337b8230ae33f3b6c9352e78f19fbc2f732797fb3bdb4bafb7f7e0fbd791c5cd3cc3ca6b3d50c609
6
+ metadata.gz: 2656361818de73859059ce6bca64b4de0ec09be4dc4a9a2725aa72e1bf0f88131523be7748f428a55b8c087afd170cd7a8b388229d090fdf06b97a99226f3aaf
7
+ data.tar.gz: 263f4723b84ae1291f4ce16600102911480fa562040da48fa256e955c3a724cccc986edf4697c89562e72c3a4769eb03aca065fbd9c46497e04738bea92b52fa
@@ -0,0 +1,25 @@
1
+ module Ddr
2
+ module Contacts
3
+ extend ActiveSupport::Autoload
4
+
5
+ class << self
6
+ attr_accessor :contacts
7
+ end
8
+
9
+ def self.get(contact_slug)
10
+ load_contacts unless contacts
11
+ contacts[contact_slug]
12
+ end
13
+
14
+ def self.load_contacts
15
+ self.contacts = OpenStruct.new
16
+ contacts_file = File.join(Rails.root, 'config', 'contacts.yml')
17
+ YAML.load_file(contacts_file).each do |key, value|
18
+ contacts[key] = OpenStruct.new(value.merge('slug' => key))
19
+ end
20
+ rescue SystemCallError
21
+ Rails.logger.warn("Unable to load Contacts file: #{contacts_file}")
22
+ end
23
+
24
+ end
25
+ end
@@ -26,6 +26,10 @@ module Ddr
26
26
 
27
27
  property :admin_set, predicate: Ddr::Vocab::Asset.adminSet
28
28
 
29
+ property :display_format, predicate: Ddr::Vocab::Display.format
30
+
31
+ property :research_help_contact, predicate: Ddr::Vocab::Contact.assistance
32
+
29
33
  end
30
34
  end
31
35
  end
@@ -20,6 +20,7 @@ module Ddr
20
20
  DEFAULT_LICENSE_DESCRIPTION = solr_name :default_license_description, type: :string
21
21
  DEFAULT_LICENSE_TITLE = solr_name :default_license_title, type: :string
22
22
  DEFAULT_LICENSE_URL = solr_name :default_license_url, type: :string
23
+ DISPLAY_FORMAT = solr_name :display_format, :stored_sortable
23
24
  EXTRACTED_TEXT = solr_name :extracted_text, :searchable, type: :text
24
25
  FILE_GROUP = solr_name :struct_metadata__file_group, :stored_sortable
25
26
  FILE_USE = solr_name :struct_metadata__file_use, :stored_sortable
@@ -52,6 +53,7 @@ module Ddr
52
53
  PERMANENT_ID = solr_name :permanent_id, :stored_sortable, type: :string
53
54
  PERMANENT_URL = solr_name :permanent_url, :stored_sortable, type: :string
54
55
  POLICY_ROLE = solr_name :policy_role, :facetable, type: :string
56
+ RESEARCH_HELP_CONTACT = solr_name :research_help_contact, :stored_sortable
55
57
  RESOURCE_ROLE = solr_name :resource_role, :facetable, type: :string
56
58
  TITLE = solr_name :title, :stored_sortable
57
59
  WORKFLOW_STATE = solr_name :workflow_state, :stored_sortable
@@ -11,6 +11,7 @@ require 'hydra/validations'
11
11
 
12
12
  require 'ddr/actions'
13
13
  require 'ddr/auth'
14
+ require 'ddr/contacts'
14
15
  require 'ddr/datastreams'
15
16
  require 'ddr/derivatives'
16
17
  require 'ddr/events'
@@ -10,9 +10,11 @@ module Ddr
10
10
  control_group: "M"
11
11
 
12
12
  has_attributes :admin_set,
13
+ :display_format,
13
14
  :local_id,
14
15
  :permanent_id,
15
16
  :permanent_url,
17
+ :research_help_contact,
16
18
  :workflow_state,
17
19
  datastream: "adminMetadata",
18
20
  multiple: false
@@ -42,6 +44,10 @@ module Ddr
42
44
  permanent_id_manager.assign_later
43
45
  end
44
46
 
47
+ def research_help
48
+ Ddr::Contacts.get(research_help_contact) if research_help_contact
49
+ end
50
+
45
51
  private
46
52
 
47
53
  def update_permanent_id_on_destroy
@@ -11,17 +11,19 @@ module Ddr
11
11
 
12
12
  def index_fields
13
13
  fields = {
14
- TITLE => title_display,
15
- INTERNAL_URI => internal_uri,
16
- IDENTIFIER => identifier_sort,
17
- WORKFLOW_STATE => workflow_state,
18
- LOCAL_ID => local_id,
19
- ADMIN_SET => admin_set,
20
- PERMANENT_ID => permanent_id,
21
- PERMANENT_URL => permanent_url,
22
- CREATOR_FACET => creator,
23
- DATE_FACET => date,
24
- DATE_SORT => date_sort
14
+ TITLE => title_display,
15
+ INTERNAL_URI => internal_uri,
16
+ IDENTIFIER => identifier_sort,
17
+ WORKFLOW_STATE => workflow_state,
18
+ LOCAL_ID => local_id,
19
+ ADMIN_SET => admin_set,
20
+ DISPLAY_FORMAT => display_format,
21
+ PERMANENT_ID => permanent_id,
22
+ PERMANENT_URL => permanent_url,
23
+ CREATOR_FACET => creator,
24
+ DATE_FACET => date,
25
+ DATE_SORT => date_sort,
26
+ RESEARCH_HELP_CONTACT => research_help_contact
25
27
  }
26
28
  if respond_to? :fixity_checks
27
29
  last_fixity_check = fixity_checks.last
@@ -213,6 +213,15 @@ module Ddr
213
213
  get("access_role_ssi")
214
214
  end
215
215
 
216
+ def display_format
217
+ get(Ddr::IndexFields::DISPLAY_FORMAT)
218
+ end
219
+
220
+ def research_help
221
+ research_help_contact = self[Ddr::IndexFields::RESEARCH_HELP_CONTACT] || inherited_research_help_contact
222
+ Ddr::Contacts.get(research_help_contact) if research_help_contact
223
+ end
224
+
216
225
  private
217
226
 
218
227
  def targets_query
@@ -239,6 +248,15 @@ module Ddr
239
248
  ActiveFedora::Base.pid_from_uri(get(field)) rescue nil
240
249
  end
241
250
 
251
+ def inherited_research_help_contact
252
+ if admin_policy_pid
253
+ query = ActiveFedora::SolrService.construct_query_for_pids([admin_policy_pid])
254
+ results = ActiveFedora::SolrService.query(query)
255
+ doc = results.map { |result| ::SolrDocument.new(result) }.first
256
+ doc[Ddr::IndexFields::RESEARCH_HELP_CONTACT].first
257
+ end
258
+ end
259
+
242
260
  end
243
261
  end
244
262
  end
@@ -1,5 +1,5 @@
1
1
  module Ddr
2
2
  module Models
3
- VERSION = "1.16.2"
3
+ VERSION = "1.17.0"
4
4
  end
5
5
  end
@@ -13,6 +13,8 @@ module Ddr
13
13
  end
14
14
 
15
15
  autoload :Asset
16
+ autoload :Contact
17
+ autoload :Display
16
18
  autoload :DukeTerms
17
19
  autoload :RDFVocabularyParser
18
20
  autoload :Roles
@@ -0,0 +1,11 @@
1
+ module Ddr
2
+ module Vocab
3
+ class Contact < RDF::StrictVocabulary("http://repository.lib.duke.edu/vocab/contact/")
4
+
5
+ property "assistance",
6
+ label: "Research Assistance",
7
+ comment: "Contact for research assistance with this object."
8
+
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Ddr
2
+ module Vocab
3
+ class Display < RDF::StrictVocabulary("http://repository.lib.duke.edu/vocab/display/")
4
+
5
+ property "format",
6
+ label: "Display Format",
7
+ comment: "Format to use when displaying the object."
8
+
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,26 @@
1
+ require 'spec_helper'
2
+
3
+ module Ddr
4
+ RSpec.describe Contacts, contacts: true do
5
+
6
+ before do
7
+ allow(YAML).to receive(:load_file) { { 'a' => { 'name' => 'Contact A', 'short_name' => 'A' },
8
+ 'b' => { 'name' => 'Contact B', 'short_name' => 'B' } } }
9
+ Contacts.load_contacts
10
+ end
11
+
12
+ describe "load_contacts" do
13
+ it "should load the contacts" do
14
+ expect(Contacts.contacts.to_h).to_not be_empty
15
+ end
16
+ end
17
+
18
+ describe "get" do
19
+ it "should return the appropriate contact" do
20
+ expect(Contacts.get('a').name).to eq('Contact A')
21
+ expect(Contacts.get('b').name).to eq('Contact B')
22
+ end
23
+ end
24
+
25
+ end
26
+ end
@@ -37354,3 +37354,1701 @@ Using the default predicate_mappings.yml that comes with active-fedora. If you
37354
37354
   (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
37355
37355
   (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
37356
37356
   (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
37357
+ 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.
37358
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
37359
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
37360
+  (0.1ms)  SELECT sql
37361
+ FROM sqlite_master
37362
+ WHERE name='index_events_on_type' AND type='index'
37363
+ UNION ALL
37364
+ SELECT sql
37365
+ FROM sqlite_temp_master
37366
+ WHERE name='index_events_on_type' AND type='index'
37367
+ 
37368
+  (0.1ms) SELECT sql
37369
+ FROM sqlite_master
37370
+ WHERE name='index_events_on_pid' AND type='index'
37371
+ UNION ALL
37372
+ SELECT sql
37373
+ FROM sqlite_temp_master
37374
+ WHERE name='index_events_on_pid' AND type='index'
37375
+
37376
+  (0.1ms)  SELECT sql
37377
+ FROM sqlite_master
37378
+ WHERE name='index_events_on_outcome' AND type='index'
37379
+ UNION ALL
37380
+ SELECT sql
37381
+ FROM sqlite_temp_master
37382
+ WHERE name='index_events_on_outcome' AND type='index'
37383
+ 
37384
+  (0.1ms) SELECT sql
37385
+ FROM sqlite_master
37386
+ WHERE name='index_events_on_event_date_time' AND type='index'
37387
+ UNION ALL
37388
+ SELECT sql
37389
+ FROM sqlite_temp_master
37390
+ WHERE name='index_events_on_event_date_time' AND type='index'
37391
+
37392
+  (0.1ms)  SELECT sql
37393
+ FROM sqlite_master
37394
+ WHERE name='index_users_on_username' AND type='index'
37395
+ UNION ALL
37396
+ SELECT sql
37397
+ FROM sqlite_temp_master
37398
+ WHERE name='index_users_on_username' AND type='index'
37399
+ 
37400
+  (0.1ms) SELECT sql
37401
+ FROM sqlite_master
37402
+ WHERE name='index_users_on_reset_password_token' AND type='index'
37403
+ UNION ALL
37404
+ SELECT sql
37405
+ FROM sqlite_temp_master
37406
+ WHERE name='index_users_on_reset_password_token' AND type='index'
37407
+
37408
+  (0.1ms)  SELECT sql
37409
+ FROM sqlite_master
37410
+ WHERE name='index_users_on_email' AND type='index'
37411
+ UNION ALL
37412
+ SELECT sql
37413
+ FROM sqlite_temp_master
37414
+ WHERE name='index_users_on_email' AND type='index'
37415
+ 
37416
+  (1.2ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "event_date_time" datetime, "user_id" integer, "type" varchar(255), "pid" varchar(255), "software" varchar(255), "comment" text, "created_at" datetime, "updated_at" datetime, "summary" varchar(255), "outcome" varchar(255), "detail" text, "exception" text(65535), "user_key" varchar(255))
37417
+  (0.1ms) select sqlite_version(*)
37418
+  (1.0ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
37419
+  (0.1ms)  SELECT sql
37420
+ FROM sqlite_master
37421
+ WHERE name='index_events_on_event_date_time' AND type='index'
37422
+ UNION ALL
37423
+ SELECT sql
37424
+ FROM sqlite_temp_master
37425
+ WHERE name='index_events_on_event_date_time' AND type='index'
37426
+ 
37427
+  (6.5ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
37428
+  (0.1ms)  SELECT sql
37429
+ FROM sqlite_master
37430
+ WHERE name='index_events_on_outcome' AND type='index'
37431
+ UNION ALL
37432
+ SELECT sql
37433
+ FROM sqlite_temp_master
37434
+ WHERE name='index_events_on_outcome' AND type='index'
37435
+ 
37436
+  (0.1ms) SELECT sql
37437
+ FROM sqlite_master
37438
+ WHERE name='index_events_on_event_date_time' AND type='index'
37439
+ UNION ALL
37440
+ SELECT sql
37441
+ FROM sqlite_temp_master
37442
+ WHERE name='index_events_on_event_date_time' AND type='index'
37443
+
37444
+  (1.1ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
37445
+  (0.1ms) SELECT sql
37446
+ FROM sqlite_master
37447
+ WHERE name='index_events_on_pid' AND type='index'
37448
+ UNION ALL
37449
+ SELECT sql
37450
+ FROM sqlite_temp_master
37451
+ WHERE name='index_events_on_pid' AND type='index'
37452
+
37453
+  (0.1ms)  SELECT sql
37454
+ FROM sqlite_master
37455
+ WHERE name='index_events_on_outcome' AND type='index'
37456
+ UNION ALL
37457
+ SELECT sql
37458
+ FROM sqlite_temp_master
37459
+ WHERE name='index_events_on_outcome' AND type='index'
37460
+ 
37461
+  (0.1ms) SELECT sql
37462
+ FROM sqlite_master
37463
+ WHERE name='index_events_on_event_date_time' AND type='index'
37464
+ UNION ALL
37465
+ SELECT sql
37466
+ FROM sqlite_temp_master
37467
+ WHERE name='index_events_on_event_date_time' AND type='index'
37468
+
37469
+  (1.1ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
37470
+  (20.0ms) 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, "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 NOT NULL, "updated_at" datetime NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "first_name" varchar(255), "middle_name" varchar(255), "nickname" varchar(255), "last_name" varchar(255), "display_name" varchar(255))
37471
+  (1.4ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
37472
+  (0.1ms) SELECT sql
37473
+ FROM sqlite_master
37474
+ WHERE name='index_users_on_email' AND type='index'
37475
+ UNION ALL
37476
+ SELECT sql
37477
+ FROM sqlite_temp_master
37478
+ WHERE name='index_users_on_email' AND type='index'
37479
+
37480
+  (1.2ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
37481
+  (0.1ms) SELECT sql
37482
+ FROM sqlite_master
37483
+ WHERE name='index_users_on_reset_password_token' AND type='index'
37484
+ UNION ALL
37485
+ SELECT sql
37486
+ FROM sqlite_temp_master
37487
+ WHERE name='index_users_on_reset_password_token' AND type='index'
37488
+
37489
+  (0.1ms)  SELECT sql
37490
+ FROM sqlite_master
37491
+ WHERE name='index_users_on_email' AND type='index'
37492
+ UNION ALL
37493
+ SELECT sql
37494
+ FROM sqlite_temp_master
37495
+ WHERE name='index_users_on_email' AND type='index'
37496
+ 
37497
+  (1.3ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
37498
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
37499
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
37500
+  (0.1ms) SELECT version FROM "schema_migrations"
37501
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713171838')
37502
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
37503
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
37504
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
37505
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
37506
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
37507
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
37508
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
37509
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
37510
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
37511
+ 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.
37512
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
37513
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
37514
+  (0.1ms)  SELECT sql
37515
+ FROM sqlite_master
37516
+ WHERE name='index_events_on_type' AND type='index'
37517
+ UNION ALL
37518
+ SELECT sql
37519
+ FROM sqlite_temp_master
37520
+ WHERE name='index_events_on_type' AND type='index'
37521
+ 
37522
+  (0.1ms) SELECT sql
37523
+ FROM sqlite_master
37524
+ WHERE name='index_events_on_pid' AND type='index'
37525
+ UNION ALL
37526
+ SELECT sql
37527
+ FROM sqlite_temp_master
37528
+ WHERE name='index_events_on_pid' AND type='index'
37529
+
37530
+  (0.1ms)  SELECT sql
37531
+ FROM sqlite_master
37532
+ WHERE name='index_events_on_outcome' AND type='index'
37533
+ UNION ALL
37534
+ SELECT sql
37535
+ FROM sqlite_temp_master
37536
+ WHERE name='index_events_on_outcome' AND type='index'
37537
+ 
37538
+  (0.1ms) SELECT sql
37539
+ FROM sqlite_master
37540
+ WHERE name='index_events_on_event_date_time' AND type='index'
37541
+ UNION ALL
37542
+ SELECT sql
37543
+ FROM sqlite_temp_master
37544
+ WHERE name='index_events_on_event_date_time' AND type='index'
37545
+
37546
+  (0.1ms)  SELECT sql
37547
+ FROM sqlite_master
37548
+ WHERE name='index_users_on_username' AND type='index'
37549
+ UNION ALL
37550
+ SELECT sql
37551
+ FROM sqlite_temp_master
37552
+ WHERE name='index_users_on_username' AND type='index'
37553
+ 
37554
+  (0.1ms) SELECT sql
37555
+ FROM sqlite_master
37556
+ WHERE name='index_users_on_reset_password_token' AND type='index'
37557
+ UNION ALL
37558
+ SELECT sql
37559
+ FROM sqlite_temp_master
37560
+ WHERE name='index_users_on_reset_password_token' AND type='index'
37561
+
37562
+  (0.1ms)  SELECT sql
37563
+ FROM sqlite_master
37564
+ WHERE name='index_users_on_email' AND type='index'
37565
+ UNION ALL
37566
+ SELECT sql
37567
+ FROM sqlite_temp_master
37568
+ WHERE name='index_users_on_email' AND type='index'
37569
+ 
37570
+  (1.3ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "event_date_time" datetime, "user_id" integer, "type" varchar(255), "pid" varchar(255), "software" varchar(255), "comment" text, "created_at" datetime, "updated_at" datetime, "summary" varchar(255), "outcome" varchar(255), "detail" text, "exception" text(65535), "user_key" varchar(255))
37571
+  (0.1ms) select sqlite_version(*)
37572
+  (1.1ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
37573
+  (0.2ms)  SELECT sql
37574
+ FROM sqlite_master
37575
+ WHERE name='index_events_on_event_date_time' AND type='index'
37576
+ UNION ALL
37577
+ SELECT sql
37578
+ FROM sqlite_temp_master
37579
+ WHERE name='index_events_on_event_date_time' AND type='index'
37580
+ 
37581
+  (1.6ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
37582
+  (0.1ms)  SELECT sql
37583
+ FROM sqlite_master
37584
+ WHERE name='index_events_on_outcome' AND type='index'
37585
+ UNION ALL
37586
+ SELECT sql
37587
+ FROM sqlite_temp_master
37588
+ WHERE name='index_events_on_outcome' AND type='index'
37589
+ 
37590
+  (0.1ms) SELECT sql
37591
+ FROM sqlite_master
37592
+ WHERE name='index_events_on_event_date_time' AND type='index'
37593
+ UNION ALL
37594
+ SELECT sql
37595
+ FROM sqlite_temp_master
37596
+ WHERE name='index_events_on_event_date_time' AND type='index'
37597
+
37598
+  (1.3ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
37599
+  (0.1ms) SELECT sql
37600
+ FROM sqlite_master
37601
+ WHERE name='index_events_on_pid' AND type='index'
37602
+ UNION ALL
37603
+ SELECT sql
37604
+ FROM sqlite_temp_master
37605
+ WHERE name='index_events_on_pid' AND type='index'
37606
+
37607
+  (0.1ms)  SELECT sql
37608
+ FROM sqlite_master
37609
+ WHERE name='index_events_on_outcome' AND type='index'
37610
+ UNION ALL
37611
+ SELECT sql
37612
+ FROM sqlite_temp_master
37613
+ WHERE name='index_events_on_outcome' AND type='index'
37614
+ 
37615
+  (0.1ms) SELECT sql
37616
+ FROM sqlite_master
37617
+ WHERE name='index_events_on_event_date_time' AND type='index'
37618
+ UNION ALL
37619
+ SELECT sql
37620
+ FROM sqlite_temp_master
37621
+ WHERE name='index_events_on_event_date_time' AND type='index'
37622
+
37623
+  (1.2ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
37624
+  (351.9ms) 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, "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 NOT NULL, "updated_at" datetime NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "first_name" varchar(255), "middle_name" varchar(255), "nickname" varchar(255), "last_name" varchar(255), "display_name" varchar(255))
37625
+  (143.5ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
37626
+  (0.1ms) SELECT sql
37627
+ FROM sqlite_master
37628
+ WHERE name='index_users_on_email' AND type='index'
37629
+ UNION ALL
37630
+ SELECT sql
37631
+ FROM sqlite_temp_master
37632
+ WHERE name='index_users_on_email' AND type='index'
37633
+
37634
+  (34.0ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
37635
+  (0.1ms) SELECT sql
37636
+ FROM sqlite_master
37637
+ WHERE name='index_users_on_reset_password_token' AND type='index'
37638
+ UNION ALL
37639
+ SELECT sql
37640
+ FROM sqlite_temp_master
37641
+ WHERE name='index_users_on_reset_password_token' AND type='index'
37642
+
37643
+  (0.1ms)  SELECT sql
37644
+ FROM sqlite_master
37645
+ WHERE name='index_users_on_email' AND type='index'
37646
+ UNION ALL
37647
+ SELECT sql
37648
+ FROM sqlite_temp_master
37649
+ WHERE name='index_users_on_email' AND type='index'
37650
+ 
37651
+  (1.6ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
37652
+  (5.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
37653
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
37654
+  (0.1ms) SELECT version FROM "schema_migrations"
37655
+  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713171838')
37656
+  (8.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
37657
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
37658
+  (8.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
37659
+  (7.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
37660
+  (13.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
37661
+  (28.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
37662
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
37663
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
37664
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
37665
+ 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.
37666
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
37667
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
37668
+  (0.1ms)  SELECT sql
37669
+ FROM sqlite_master
37670
+ WHERE name='index_events_on_type' AND type='index'
37671
+ UNION ALL
37672
+ SELECT sql
37673
+ FROM sqlite_temp_master
37674
+ WHERE name='index_events_on_type' AND type='index'
37675
+ 
37676
+  (0.2ms) SELECT sql
37677
+ FROM sqlite_master
37678
+ WHERE name='index_events_on_pid' AND type='index'
37679
+ UNION ALL
37680
+ SELECT sql
37681
+ FROM sqlite_temp_master
37682
+ WHERE name='index_events_on_pid' AND type='index'
37683
+
37684
+  (0.1ms)  SELECT sql
37685
+ FROM sqlite_master
37686
+ WHERE name='index_events_on_outcome' AND type='index'
37687
+ UNION ALL
37688
+ SELECT sql
37689
+ FROM sqlite_temp_master
37690
+ WHERE name='index_events_on_outcome' AND type='index'
37691
+ 
37692
+  (0.1ms) SELECT sql
37693
+ FROM sqlite_master
37694
+ WHERE name='index_events_on_event_date_time' AND type='index'
37695
+ UNION ALL
37696
+ SELECT sql
37697
+ FROM sqlite_temp_master
37698
+ WHERE name='index_events_on_event_date_time' AND type='index'
37699
+
37700
+  (0.1ms)  SELECT sql
37701
+ FROM sqlite_master
37702
+ WHERE name='index_users_on_username' AND type='index'
37703
+ UNION ALL
37704
+ SELECT sql
37705
+ FROM sqlite_temp_master
37706
+ WHERE name='index_users_on_username' AND type='index'
37707
+ 
37708
+  (0.1ms) SELECT sql
37709
+ FROM sqlite_master
37710
+ WHERE name='index_users_on_reset_password_token' AND type='index'
37711
+ UNION ALL
37712
+ SELECT sql
37713
+ FROM sqlite_temp_master
37714
+ WHERE name='index_users_on_reset_password_token' AND type='index'
37715
+
37716
+  (0.1ms)  SELECT sql
37717
+ FROM sqlite_master
37718
+ WHERE name='index_users_on_email' AND type='index'
37719
+ UNION ALL
37720
+ SELECT sql
37721
+ FROM sqlite_temp_master
37722
+ WHERE name='index_users_on_email' AND type='index'
37723
+ 
37724
+  (1.5ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "event_date_time" datetime, "user_id" integer, "type" varchar(255), "pid" varchar(255), "software" varchar(255), "comment" text, "created_at" datetime, "updated_at" datetime, "summary" varchar(255), "outcome" varchar(255), "detail" text, "exception" text(65535), "user_key" varchar(255))
37725
+  (0.1ms) select sqlite_version(*)
37726
+  (1.1ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
37727
+  (0.1ms)  SELECT sql
37728
+ FROM sqlite_master
37729
+ WHERE name='index_events_on_event_date_time' AND type='index'
37730
+ UNION ALL
37731
+ SELECT sql
37732
+ FROM sqlite_temp_master
37733
+ WHERE name='index_events_on_event_date_time' AND type='index'
37734
+ 
37735
+  (1.0ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
37736
+  (0.1ms)  SELECT sql
37737
+ FROM sqlite_master
37738
+ WHERE name='index_events_on_outcome' AND type='index'
37739
+ UNION ALL
37740
+ SELECT sql
37741
+ FROM sqlite_temp_master
37742
+ WHERE name='index_events_on_outcome' AND type='index'
37743
+ 
37744
+  (0.1ms) SELECT sql
37745
+ FROM sqlite_master
37746
+ WHERE name='index_events_on_event_date_time' AND type='index'
37747
+ UNION ALL
37748
+ SELECT sql
37749
+ FROM sqlite_temp_master
37750
+ WHERE name='index_events_on_event_date_time' AND type='index'
37751
+
37752
+  (1.0ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
37753
+  (0.1ms) SELECT sql
37754
+ FROM sqlite_master
37755
+ WHERE name='index_events_on_pid' AND type='index'
37756
+ UNION ALL
37757
+ SELECT sql
37758
+ FROM sqlite_temp_master
37759
+ WHERE name='index_events_on_pid' AND type='index'
37760
+
37761
+  (0.1ms)  SELECT sql
37762
+ FROM sqlite_master
37763
+ WHERE name='index_events_on_outcome' AND type='index'
37764
+ UNION ALL
37765
+ SELECT sql
37766
+ FROM sqlite_temp_master
37767
+ WHERE name='index_events_on_outcome' AND type='index'
37768
+ 
37769
+  (0.1ms) SELECT sql
37770
+ FROM sqlite_master
37771
+ WHERE name='index_events_on_event_date_time' AND type='index'
37772
+ UNION ALL
37773
+ SELECT sql
37774
+ FROM sqlite_temp_master
37775
+ WHERE name='index_events_on_event_date_time' AND type='index'
37776
+
37777
+  (1.0ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
37778
+  (1.2ms) 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, "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 NOT NULL, "updated_at" datetime NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "first_name" varchar(255), "middle_name" varchar(255), "nickname" varchar(255), "last_name" varchar(255), "display_name" varchar(255))
37779
+  (0.9ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
37780
+  (0.1ms) SELECT sql
37781
+ FROM sqlite_master
37782
+ WHERE name='index_users_on_email' AND type='index'
37783
+ UNION ALL
37784
+ SELECT sql
37785
+ FROM sqlite_temp_master
37786
+ WHERE name='index_users_on_email' AND type='index'
37787
+
37788
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
37789
+  (0.1ms) SELECT sql
37790
+ FROM sqlite_master
37791
+ WHERE name='index_users_on_reset_password_token' AND type='index'
37792
+ UNION ALL
37793
+ SELECT sql
37794
+ FROM sqlite_temp_master
37795
+ WHERE name='index_users_on_reset_password_token' AND type='index'
37796
+
37797
+  (0.1ms)  SELECT sql
37798
+ FROM sqlite_master
37799
+ WHERE name='index_users_on_email' AND type='index'
37800
+ UNION ALL
37801
+ SELECT sql
37802
+ FROM sqlite_temp_master
37803
+ WHERE name='index_users_on_email' AND type='index'
37804
+ 
37805
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
37806
+  (17.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
37807
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
37808
+  (0.1ms) SELECT version FROM "schema_migrations"
37809
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713171838')
37810
+  (14.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
37811
+  (11.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
37812
+  (6.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
37813
+  (10.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
37814
+  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
37815
+  (7.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
37816
+  (7.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
37817
+  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
37818
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
37819
+ 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.
37820
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
37821
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
37822
+  (0.2ms)  SELECT sql
37823
+ FROM sqlite_master
37824
+ WHERE name='index_events_on_type' AND type='index'
37825
+ UNION ALL
37826
+ SELECT sql
37827
+ FROM sqlite_temp_master
37828
+ WHERE name='index_events_on_type' AND type='index'
37829
+ 
37830
+  (0.2ms) SELECT sql
37831
+ FROM sqlite_master
37832
+ WHERE name='index_events_on_pid' AND type='index'
37833
+ UNION ALL
37834
+ SELECT sql
37835
+ FROM sqlite_temp_master
37836
+ WHERE name='index_events_on_pid' AND type='index'
37837
+
37838
+  (0.1ms)  SELECT sql
37839
+ FROM sqlite_master
37840
+ WHERE name='index_events_on_outcome' AND type='index'
37841
+ UNION ALL
37842
+ SELECT sql
37843
+ FROM sqlite_temp_master
37844
+ WHERE name='index_events_on_outcome' AND type='index'
37845
+ 
37846
+  (0.1ms) SELECT sql
37847
+ FROM sqlite_master
37848
+ WHERE name='index_events_on_event_date_time' AND type='index'
37849
+ UNION ALL
37850
+ SELECT sql
37851
+ FROM sqlite_temp_master
37852
+ WHERE name='index_events_on_event_date_time' AND type='index'
37853
+
37854
+  (0.1ms)  SELECT sql
37855
+ FROM sqlite_master
37856
+ WHERE name='index_users_on_username' AND type='index'
37857
+ UNION ALL
37858
+ SELECT sql
37859
+ FROM sqlite_temp_master
37860
+ WHERE name='index_users_on_username' AND type='index'
37861
+ 
37862
+  (0.1ms) SELECT sql
37863
+ FROM sqlite_master
37864
+ WHERE name='index_users_on_reset_password_token' AND type='index'
37865
+ UNION ALL
37866
+ SELECT sql
37867
+ FROM sqlite_temp_master
37868
+ WHERE name='index_users_on_reset_password_token' AND type='index'
37869
+
37870
+  (0.1ms)  SELECT sql
37871
+ FROM sqlite_master
37872
+ WHERE name='index_users_on_email' AND type='index'
37873
+ UNION ALL
37874
+ SELECT sql
37875
+ FROM sqlite_temp_master
37876
+ WHERE name='index_users_on_email' AND type='index'
37877
+ 
37878
+  (1.1ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "event_date_time" datetime, "user_id" integer, "type" varchar(255), "pid" varchar(255), "software" varchar(255), "comment" text, "created_at" datetime, "updated_at" datetime, "summary" varchar(255), "outcome" varchar(255), "detail" text, "exception" text(65535), "user_key" varchar(255))
37879
+  (0.1ms) select sqlite_version(*)
37880
+  (1.0ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
37881
+  (0.1ms)  SELECT sql
37882
+ FROM sqlite_master
37883
+ WHERE name='index_events_on_event_date_time' AND type='index'
37884
+ UNION ALL
37885
+ SELECT sql
37886
+ FROM sqlite_temp_master
37887
+ WHERE name='index_events_on_event_date_time' AND type='index'
37888
+ 
37889
+  (1.0ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
37890
+  (0.1ms)  SELECT sql
37891
+ FROM sqlite_master
37892
+ WHERE name='index_events_on_outcome' AND type='index'
37893
+ UNION ALL
37894
+ SELECT sql
37895
+ FROM sqlite_temp_master
37896
+ WHERE name='index_events_on_outcome' AND type='index'
37897
+ 
37898
+  (0.1ms) SELECT sql
37899
+ FROM sqlite_master
37900
+ WHERE name='index_events_on_event_date_time' AND type='index'
37901
+ UNION ALL
37902
+ SELECT sql
37903
+ FROM sqlite_temp_master
37904
+ WHERE name='index_events_on_event_date_time' AND type='index'
37905
+
37906
+  (1.0ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
37907
+  (0.1ms) SELECT sql
37908
+ FROM sqlite_master
37909
+ WHERE name='index_events_on_pid' AND type='index'
37910
+ UNION ALL
37911
+ SELECT sql
37912
+ FROM sqlite_temp_master
37913
+ WHERE name='index_events_on_pid' AND type='index'
37914
+
37915
+  (0.1ms)  SELECT sql
37916
+ FROM sqlite_master
37917
+ WHERE name='index_events_on_outcome' AND type='index'
37918
+ UNION ALL
37919
+ SELECT sql
37920
+ FROM sqlite_temp_master
37921
+ WHERE name='index_events_on_outcome' AND type='index'
37922
+ 
37923
+  (0.1ms) SELECT sql
37924
+ FROM sqlite_master
37925
+ WHERE name='index_events_on_event_date_time' AND type='index'
37926
+ UNION ALL
37927
+ SELECT sql
37928
+ FROM sqlite_temp_master
37929
+ WHERE name='index_events_on_event_date_time' AND type='index'
37930
+
37931
+  (0.9ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
37932
+  (1.2ms) 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, "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 NOT NULL, "updated_at" datetime NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "first_name" varchar(255), "middle_name" varchar(255), "nickname" varchar(255), "last_name" varchar(255), "display_name" varchar(255))
37933
+  (1.0ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
37934
+  (0.1ms) SELECT sql
37935
+ FROM sqlite_master
37936
+ WHERE name='index_users_on_email' AND type='index'
37937
+ UNION ALL
37938
+ SELECT sql
37939
+ FROM sqlite_temp_master
37940
+ WHERE name='index_users_on_email' AND type='index'
37941
+
37942
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
37943
+  (0.1ms) SELECT sql
37944
+ FROM sqlite_master
37945
+ WHERE name='index_users_on_reset_password_token' AND type='index'
37946
+ UNION ALL
37947
+ SELECT sql
37948
+ FROM sqlite_temp_master
37949
+ WHERE name='index_users_on_reset_password_token' AND type='index'
37950
+
37951
+  (0.1ms)  SELECT sql
37952
+ FROM sqlite_master
37953
+ WHERE name='index_users_on_email' AND type='index'
37954
+ UNION ALL
37955
+ SELECT sql
37956
+ FROM sqlite_temp_master
37957
+ WHERE name='index_users_on_email' AND type='index'
37958
+ 
37959
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
37960
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
37961
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
37962
+  (0.1ms) SELECT version FROM "schema_migrations"
37963
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713171838')
37964
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
37965
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
37966
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
37967
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
37968
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
37969
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
37970
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
37971
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
37972
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
37973
+ 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.
37974
+ ActiveRecord::SchemaMigration Load (16.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
37975
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
37976
+  (0.1ms)  SELECT sql
37977
+ FROM sqlite_master
37978
+ WHERE name='index_events_on_type' AND type='index'
37979
+ UNION ALL
37980
+ SELECT sql
37981
+ FROM sqlite_temp_master
37982
+ WHERE name='index_events_on_type' AND type='index'
37983
+ 
37984
+  (0.1ms) SELECT sql
37985
+ FROM sqlite_master
37986
+ WHERE name='index_events_on_pid' AND type='index'
37987
+ UNION ALL
37988
+ SELECT sql
37989
+ FROM sqlite_temp_master
37990
+ WHERE name='index_events_on_pid' AND type='index'
37991
+
37992
+  (0.1ms)  SELECT sql
37993
+ FROM sqlite_master
37994
+ WHERE name='index_events_on_outcome' AND type='index'
37995
+ UNION ALL
37996
+ SELECT sql
37997
+ FROM sqlite_temp_master
37998
+ WHERE name='index_events_on_outcome' AND type='index'
37999
+ 
38000
+  (0.1ms) SELECT sql
38001
+ FROM sqlite_master
38002
+ WHERE name='index_events_on_event_date_time' AND type='index'
38003
+ UNION ALL
38004
+ SELECT sql
38005
+ FROM sqlite_temp_master
38006
+ WHERE name='index_events_on_event_date_time' AND type='index'
38007
+
38008
+  (0.1ms)  SELECT sql
38009
+ FROM sqlite_master
38010
+ WHERE name='index_users_on_username' AND type='index'
38011
+ UNION ALL
38012
+ SELECT sql
38013
+ FROM sqlite_temp_master
38014
+ WHERE name='index_users_on_username' AND type='index'
38015
+ 
38016
+  (0.1ms) SELECT sql
38017
+ FROM sqlite_master
38018
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38019
+ UNION ALL
38020
+ SELECT sql
38021
+ FROM sqlite_temp_master
38022
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38023
+
38024
+  (0.1ms)  SELECT sql
38025
+ FROM sqlite_master
38026
+ WHERE name='index_users_on_email' AND type='index'
38027
+ UNION ALL
38028
+ SELECT sql
38029
+ FROM sqlite_temp_master
38030
+ WHERE name='index_users_on_email' AND type='index'
38031
+ 
38032
+  (1.3ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "event_date_time" datetime, "user_id" integer, "type" varchar(255), "pid" varchar(255), "software" varchar(255), "comment" text, "created_at" datetime, "updated_at" datetime, "summary" varchar(255), "outcome" varchar(255), "detail" text, "exception" text(65535), "user_key" varchar(255))
38033
+  (0.0ms) select sqlite_version(*)
38034
+  (1.0ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
38035
+  (0.1ms)  SELECT sql
38036
+ FROM sqlite_master
38037
+ WHERE name='index_events_on_event_date_time' AND type='index'
38038
+ UNION ALL
38039
+ SELECT sql
38040
+ FROM sqlite_temp_master
38041
+ WHERE name='index_events_on_event_date_time' AND type='index'
38042
+ 
38043
+  (1.0ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
38044
+  (0.1ms)  SELECT sql
38045
+ FROM sqlite_master
38046
+ WHERE name='index_events_on_outcome' AND type='index'
38047
+ UNION ALL
38048
+ SELECT sql
38049
+ FROM sqlite_temp_master
38050
+ WHERE name='index_events_on_outcome' AND type='index'
38051
+ 
38052
+  (0.1ms) SELECT sql
38053
+ FROM sqlite_master
38054
+ WHERE name='index_events_on_event_date_time' AND type='index'
38055
+ UNION ALL
38056
+ SELECT sql
38057
+ FROM sqlite_temp_master
38058
+ WHERE name='index_events_on_event_date_time' AND type='index'
38059
+
38060
+  (1.0ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
38061
+  (0.1ms) SELECT sql
38062
+ FROM sqlite_master
38063
+ WHERE name='index_events_on_pid' AND type='index'
38064
+ UNION ALL
38065
+ SELECT sql
38066
+ FROM sqlite_temp_master
38067
+ WHERE name='index_events_on_pid' AND type='index'
38068
+
38069
+  (0.1ms)  SELECT sql
38070
+ FROM sqlite_master
38071
+ WHERE name='index_events_on_outcome' AND type='index'
38072
+ UNION ALL
38073
+ SELECT sql
38074
+ FROM sqlite_temp_master
38075
+ WHERE name='index_events_on_outcome' AND type='index'
38076
+ 
38077
+  (0.1ms) SELECT sql
38078
+ FROM sqlite_master
38079
+ WHERE name='index_events_on_event_date_time' AND type='index'
38080
+ UNION ALL
38081
+ SELECT sql
38082
+ FROM sqlite_temp_master
38083
+ WHERE name='index_events_on_event_date_time' AND type='index'
38084
+
38085
+  (1.0ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
38086
+  (1.6ms) 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, "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 NOT NULL, "updated_at" datetime NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "first_name" varchar(255), "middle_name" varchar(255), "nickname" varchar(255), "last_name" varchar(255), "display_name" varchar(255))
38087
+  (1.1ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
38088
+  (0.1ms) SELECT sql
38089
+ FROM sqlite_master
38090
+ WHERE name='index_users_on_email' AND type='index'
38091
+ UNION ALL
38092
+ SELECT sql
38093
+ FROM sqlite_temp_master
38094
+ WHERE name='index_users_on_email' AND type='index'
38095
+
38096
+  (1.2ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
38097
+  (0.1ms) SELECT sql
38098
+ FROM sqlite_master
38099
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38100
+ UNION ALL
38101
+ SELECT sql
38102
+ FROM sqlite_temp_master
38103
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38104
+
38105
+  (0.1ms)  SELECT sql
38106
+ FROM sqlite_master
38107
+ WHERE name='index_users_on_email' AND type='index'
38108
+ UNION ALL
38109
+ SELECT sql
38110
+ FROM sqlite_temp_master
38111
+ WHERE name='index_users_on_email' AND type='index'
38112
+ 
38113
+  (1.1ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
38114
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
38115
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
38116
+  (0.1ms) SELECT version FROM "schema_migrations"
38117
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713171838')
38118
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
38119
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
38120
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
38121
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
38122
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
38123
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
38124
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
38125
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
38126
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
38127
+ 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.
38128
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
38129
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38130
+  (0.2ms)  SELECT sql
38131
+ FROM sqlite_master
38132
+ WHERE name='index_events_on_type' AND type='index'
38133
+ UNION ALL
38134
+ SELECT sql
38135
+ FROM sqlite_temp_master
38136
+ WHERE name='index_events_on_type' AND type='index'
38137
+ 
38138
+  (0.1ms) SELECT sql
38139
+ FROM sqlite_master
38140
+ WHERE name='index_events_on_pid' AND type='index'
38141
+ UNION ALL
38142
+ SELECT sql
38143
+ FROM sqlite_temp_master
38144
+ WHERE name='index_events_on_pid' AND type='index'
38145
+
38146
+  (0.1ms)  SELECT sql
38147
+ FROM sqlite_master
38148
+ WHERE name='index_events_on_outcome' AND type='index'
38149
+ UNION ALL
38150
+ SELECT sql
38151
+ FROM sqlite_temp_master
38152
+ WHERE name='index_events_on_outcome' AND type='index'
38153
+ 
38154
+  (0.1ms) SELECT sql
38155
+ FROM sqlite_master
38156
+ WHERE name='index_events_on_event_date_time' AND type='index'
38157
+ UNION ALL
38158
+ SELECT sql
38159
+ FROM sqlite_temp_master
38160
+ WHERE name='index_events_on_event_date_time' AND type='index'
38161
+
38162
+  (0.1ms)  SELECT sql
38163
+ FROM sqlite_master
38164
+ WHERE name='index_users_on_username' AND type='index'
38165
+ UNION ALL
38166
+ SELECT sql
38167
+ FROM sqlite_temp_master
38168
+ WHERE name='index_users_on_username' AND type='index'
38169
+ 
38170
+  (0.1ms) SELECT sql
38171
+ FROM sqlite_master
38172
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38173
+ UNION ALL
38174
+ SELECT sql
38175
+ FROM sqlite_temp_master
38176
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38177
+
38178
+  (0.1ms)  SELECT sql
38179
+ FROM sqlite_master
38180
+ WHERE name='index_users_on_email' AND type='index'
38181
+ UNION ALL
38182
+ SELECT sql
38183
+ FROM sqlite_temp_master
38184
+ WHERE name='index_users_on_email' AND type='index'
38185
+ 
38186
+  (178.6ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "event_date_time" datetime, "user_id" integer, "type" varchar(255), "pid" varchar(255), "software" varchar(255), "comment" text, "created_at" datetime, "updated_at" datetime, "summary" varchar(255), "outcome" varchar(255), "detail" text, "exception" text(65535), "user_key" varchar(255))
38187
+  (0.1ms) select sqlite_version(*)
38188
+  (25.1ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
38189
+  (0.2ms)  SELECT sql
38190
+ FROM sqlite_master
38191
+ WHERE name='index_events_on_event_date_time' AND type='index'
38192
+ UNION ALL
38193
+ SELECT sql
38194
+ FROM sqlite_temp_master
38195
+ WHERE name='index_events_on_event_date_time' AND type='index'
38196
+ 
38197
+  (34.0ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
38198
+  (0.1ms)  SELECT sql
38199
+ FROM sqlite_master
38200
+ WHERE name='index_events_on_outcome' AND type='index'
38201
+ UNION ALL
38202
+ SELECT sql
38203
+ FROM sqlite_temp_master
38204
+ WHERE name='index_events_on_outcome' AND type='index'
38205
+ 
38206
+  (0.1ms) SELECT sql
38207
+ FROM sqlite_master
38208
+ WHERE name='index_events_on_event_date_time' AND type='index'
38209
+ UNION ALL
38210
+ SELECT sql
38211
+ FROM sqlite_temp_master
38212
+ WHERE name='index_events_on_event_date_time' AND type='index'
38213
+
38214
+  (50.0ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
38215
+  (0.2ms) SELECT sql
38216
+ FROM sqlite_master
38217
+ WHERE name='index_events_on_pid' AND type='index'
38218
+ UNION ALL
38219
+ SELECT sql
38220
+ FROM sqlite_temp_master
38221
+ WHERE name='index_events_on_pid' AND type='index'
38222
+
38223
+  (0.1ms)  SELECT sql
38224
+ FROM sqlite_master
38225
+ WHERE name='index_events_on_outcome' AND type='index'
38226
+ UNION ALL
38227
+ SELECT sql
38228
+ FROM sqlite_temp_master
38229
+ WHERE name='index_events_on_outcome' AND type='index'
38230
+ 
38231
+  (0.1ms) SELECT sql
38232
+ FROM sqlite_master
38233
+ WHERE name='index_events_on_event_date_time' AND type='index'
38234
+ UNION ALL
38235
+ SELECT sql
38236
+ FROM sqlite_temp_master
38237
+ WHERE name='index_events_on_event_date_time' AND type='index'
38238
+
38239
+  (23.6ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
38240
+  (1.7ms) 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, "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 NOT NULL, "updated_at" datetime NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "first_name" varchar(255), "middle_name" varchar(255), "nickname" varchar(255), "last_name" varchar(255), "display_name" varchar(255))
38241
+  (15.9ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
38242
+  (0.2ms) SELECT sql
38243
+ FROM sqlite_master
38244
+ WHERE name='index_users_on_email' AND type='index'
38245
+ UNION ALL
38246
+ SELECT sql
38247
+ FROM sqlite_temp_master
38248
+ WHERE name='index_users_on_email' AND type='index'
38249
+
38250
+  (476.2ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
38251
+  (0.2ms) SELECT sql
38252
+ FROM sqlite_master
38253
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38254
+ UNION ALL
38255
+ SELECT sql
38256
+ FROM sqlite_temp_master
38257
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38258
+
38259
+  (0.1ms)  SELECT sql
38260
+ FROM sqlite_master
38261
+ WHERE name='index_users_on_email' AND type='index'
38262
+ UNION ALL
38263
+ SELECT sql
38264
+ FROM sqlite_temp_master
38265
+ WHERE name='index_users_on_email' AND type='index'
38266
+ 
38267
+  (123.4ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
38268
+  (244.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
38269
+  (151.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
38270
+  (0.2ms) SELECT version FROM "schema_migrations"
38271
+  (104.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713171838')
38272
+  (432.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
38273
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
38274
+  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
38275
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
38276
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
38277
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
38278
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
38279
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
38280
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
38281
+ 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.
38282
+ ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
38283
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38284
+  (0.1ms)  SELECT sql
38285
+ FROM sqlite_master
38286
+ WHERE name='index_events_on_type' AND type='index'
38287
+ UNION ALL
38288
+ SELECT sql
38289
+ FROM sqlite_temp_master
38290
+ WHERE name='index_events_on_type' AND type='index'
38291
+ 
38292
+  (0.2ms) SELECT sql
38293
+ FROM sqlite_master
38294
+ WHERE name='index_events_on_pid' AND type='index'
38295
+ UNION ALL
38296
+ SELECT sql
38297
+ FROM sqlite_temp_master
38298
+ WHERE name='index_events_on_pid' AND type='index'
38299
+
38300
+  (0.1ms)  SELECT sql
38301
+ FROM sqlite_master
38302
+ WHERE name='index_events_on_outcome' AND type='index'
38303
+ UNION ALL
38304
+ SELECT sql
38305
+ FROM sqlite_temp_master
38306
+ WHERE name='index_events_on_outcome' AND type='index'
38307
+ 
38308
+  (0.1ms) SELECT sql
38309
+ FROM sqlite_master
38310
+ WHERE name='index_events_on_event_date_time' AND type='index'
38311
+ UNION ALL
38312
+ SELECT sql
38313
+ FROM sqlite_temp_master
38314
+ WHERE name='index_events_on_event_date_time' AND type='index'
38315
+
38316
+  (0.1ms)  SELECT sql
38317
+ FROM sqlite_master
38318
+ WHERE name='index_users_on_username' AND type='index'
38319
+ UNION ALL
38320
+ SELECT sql
38321
+ FROM sqlite_temp_master
38322
+ WHERE name='index_users_on_username' AND type='index'
38323
+ 
38324
+  (0.1ms) SELECT sql
38325
+ FROM sqlite_master
38326
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38327
+ UNION ALL
38328
+ SELECT sql
38329
+ FROM sqlite_temp_master
38330
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38331
+
38332
+  (0.1ms)  SELECT sql
38333
+ FROM sqlite_master
38334
+ WHERE name='index_users_on_email' AND type='index'
38335
+ UNION ALL
38336
+ SELECT sql
38337
+ FROM sqlite_temp_master
38338
+ WHERE name='index_users_on_email' AND type='index'
38339
+ 
38340
+  (1.0ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "event_date_time" datetime, "user_id" integer, "type" varchar(255), "pid" varchar(255), "software" varchar(255), "comment" text, "created_at" datetime, "updated_at" datetime, "summary" varchar(255), "outcome" varchar(255), "detail" text, "exception" text(65535), "user_key" varchar(255))
38341
+  (0.0ms) select sqlite_version(*)
38342
+  (0.9ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
38343
+  (0.1ms)  SELECT sql
38344
+ FROM sqlite_master
38345
+ WHERE name='index_events_on_event_date_time' AND type='index'
38346
+ UNION ALL
38347
+ SELECT sql
38348
+ FROM sqlite_temp_master
38349
+ WHERE name='index_events_on_event_date_time' AND type='index'
38350
+ 
38351
+  (0.8ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
38352
+  (0.1ms)  SELECT sql
38353
+ FROM sqlite_master
38354
+ WHERE name='index_events_on_outcome' AND type='index'
38355
+ UNION ALL
38356
+ SELECT sql
38357
+ FROM sqlite_temp_master
38358
+ WHERE name='index_events_on_outcome' AND type='index'
38359
+ 
38360
+  (0.1ms) SELECT sql
38361
+ FROM sqlite_master
38362
+ WHERE name='index_events_on_event_date_time' AND type='index'
38363
+ UNION ALL
38364
+ SELECT sql
38365
+ FROM sqlite_temp_master
38366
+ WHERE name='index_events_on_event_date_time' AND type='index'
38367
+
38368
+  (1.0ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
38369
+  (0.1ms) SELECT sql
38370
+ FROM sqlite_master
38371
+ WHERE name='index_events_on_pid' AND type='index'
38372
+ UNION ALL
38373
+ SELECT sql
38374
+ FROM sqlite_temp_master
38375
+ WHERE name='index_events_on_pid' AND type='index'
38376
+
38377
+  (0.1ms)  SELECT sql
38378
+ FROM sqlite_master
38379
+ WHERE name='index_events_on_outcome' AND type='index'
38380
+ UNION ALL
38381
+ SELECT sql
38382
+ FROM sqlite_temp_master
38383
+ WHERE name='index_events_on_outcome' AND type='index'
38384
+ 
38385
+  (0.1ms) SELECT sql
38386
+ FROM sqlite_master
38387
+ WHERE name='index_events_on_event_date_time' AND type='index'
38388
+ UNION ALL
38389
+ SELECT sql
38390
+ FROM sqlite_temp_master
38391
+ WHERE name='index_events_on_event_date_time' AND type='index'
38392
+
38393
+  (0.9ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
38394
+  (1.0ms) 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, "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 NOT NULL, "updated_at" datetime NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "first_name" varchar(255), "middle_name" varchar(255), "nickname" varchar(255), "last_name" varchar(255), "display_name" varchar(255))
38395
+  (0.8ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
38396
+  (0.1ms) SELECT sql
38397
+ FROM sqlite_master
38398
+ WHERE name='index_users_on_email' AND type='index'
38399
+ UNION ALL
38400
+ SELECT sql
38401
+ FROM sqlite_temp_master
38402
+ WHERE name='index_users_on_email' AND type='index'
38403
+
38404
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
38405
+  (0.1ms) SELECT sql
38406
+ FROM sqlite_master
38407
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38408
+ UNION ALL
38409
+ SELECT sql
38410
+ FROM sqlite_temp_master
38411
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38412
+
38413
+  (0.1ms)  SELECT sql
38414
+ FROM sqlite_master
38415
+ WHERE name='index_users_on_email' AND type='index'
38416
+ UNION ALL
38417
+ SELECT sql
38418
+ FROM sqlite_temp_master
38419
+ WHERE name='index_users_on_email' AND type='index'
38420
+ 
38421
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
38422
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
38423
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
38424
+  (0.1ms) SELECT version FROM "schema_migrations"
38425
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713171838')
38426
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
38427
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
38428
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
38429
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
38430
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
38431
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
38432
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
38433
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
38434
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
38435
+ 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.
38436
+ Unable to load Contacts file: /Users/coblej/Sites/ddr-models/spec/dummy/config/contacts.yml
38437
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
38438
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38439
+  (0.1ms)  SELECT sql
38440
+ FROM sqlite_master
38441
+ WHERE name='index_events_on_type' AND type='index'
38442
+ UNION ALL
38443
+ SELECT sql
38444
+ FROM sqlite_temp_master
38445
+ WHERE name='index_events_on_type' AND type='index'
38446
+ 
38447
+  (0.2ms) SELECT sql
38448
+ FROM sqlite_master
38449
+ WHERE name='index_events_on_pid' AND type='index'
38450
+ UNION ALL
38451
+ SELECT sql
38452
+ FROM sqlite_temp_master
38453
+ WHERE name='index_events_on_pid' AND type='index'
38454
+
38455
+  (0.1ms)  SELECT sql
38456
+ FROM sqlite_master
38457
+ WHERE name='index_events_on_outcome' AND type='index'
38458
+ UNION ALL
38459
+ SELECT sql
38460
+ FROM sqlite_temp_master
38461
+ WHERE name='index_events_on_outcome' AND type='index'
38462
+ 
38463
+  (0.1ms) SELECT sql
38464
+ FROM sqlite_master
38465
+ WHERE name='index_events_on_event_date_time' AND type='index'
38466
+ UNION ALL
38467
+ SELECT sql
38468
+ FROM sqlite_temp_master
38469
+ WHERE name='index_events_on_event_date_time' AND type='index'
38470
+
38471
+  (0.1ms)  SELECT sql
38472
+ FROM sqlite_master
38473
+ WHERE name='index_users_on_username' AND type='index'
38474
+ UNION ALL
38475
+ SELECT sql
38476
+ FROM sqlite_temp_master
38477
+ WHERE name='index_users_on_username' AND type='index'
38478
+ 
38479
+  (0.1ms) SELECT sql
38480
+ FROM sqlite_master
38481
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38482
+ UNION ALL
38483
+ SELECT sql
38484
+ FROM sqlite_temp_master
38485
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38486
+
38487
+  (0.1ms)  SELECT sql
38488
+ FROM sqlite_master
38489
+ WHERE name='index_users_on_email' AND type='index'
38490
+ UNION ALL
38491
+ SELECT sql
38492
+ FROM sqlite_temp_master
38493
+ WHERE name='index_users_on_email' AND type='index'
38494
+ 
38495
+  (1.2ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "event_date_time" datetime, "user_id" integer, "type" varchar(255), "pid" varchar(255), "software" varchar(255), "comment" text, "created_at" datetime, "updated_at" datetime, "summary" varchar(255), "outcome" varchar(255), "detail" text, "exception" text(65535), "user_key" varchar(255))
38496
+  (0.1ms) select sqlite_version(*)
38497
+  (1.1ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
38498
+  (0.1ms)  SELECT sql
38499
+ FROM sqlite_master
38500
+ WHERE name='index_events_on_event_date_time' AND type='index'
38501
+ UNION ALL
38502
+ SELECT sql
38503
+ FROM sqlite_temp_master
38504
+ WHERE name='index_events_on_event_date_time' AND type='index'
38505
+ 
38506
+  (1.1ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
38507
+  (0.1ms)  SELECT sql
38508
+ FROM sqlite_master
38509
+ WHERE name='index_events_on_outcome' AND type='index'
38510
+ UNION ALL
38511
+ SELECT sql
38512
+ FROM sqlite_temp_master
38513
+ WHERE name='index_events_on_outcome' AND type='index'
38514
+ 
38515
+  (0.1ms) SELECT sql
38516
+ FROM sqlite_master
38517
+ WHERE name='index_events_on_event_date_time' AND type='index'
38518
+ UNION ALL
38519
+ SELECT sql
38520
+ FROM sqlite_temp_master
38521
+ WHERE name='index_events_on_event_date_time' AND type='index'
38522
+
38523
+  (1.7ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
38524
+  (0.1ms) SELECT sql
38525
+ FROM sqlite_master
38526
+ WHERE name='index_events_on_pid' AND type='index'
38527
+ UNION ALL
38528
+ SELECT sql
38529
+ FROM sqlite_temp_master
38530
+ WHERE name='index_events_on_pid' AND type='index'
38531
+
38532
+  (0.1ms)  SELECT sql
38533
+ FROM sqlite_master
38534
+ WHERE name='index_events_on_outcome' AND type='index'
38535
+ UNION ALL
38536
+ SELECT sql
38537
+ FROM sqlite_temp_master
38538
+ WHERE name='index_events_on_outcome' AND type='index'
38539
+ 
38540
+  (0.1ms) SELECT sql
38541
+ FROM sqlite_master
38542
+ WHERE name='index_events_on_event_date_time' AND type='index'
38543
+ UNION ALL
38544
+ SELECT sql
38545
+ FROM sqlite_temp_master
38546
+ WHERE name='index_events_on_event_date_time' AND type='index'
38547
+
38548
+  (1.3ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
38549
+  (1.6ms) 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, "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 NOT NULL, "updated_at" datetime NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "first_name" varchar(255), "middle_name" varchar(255), "nickname" varchar(255), "last_name" varchar(255), "display_name" varchar(255))
38550
+  (1.2ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
38551
+  (0.1ms) SELECT sql
38552
+ FROM sqlite_master
38553
+ WHERE name='index_users_on_email' AND type='index'
38554
+ UNION ALL
38555
+ SELECT sql
38556
+ FROM sqlite_temp_master
38557
+ WHERE name='index_users_on_email' AND type='index'
38558
+
38559
+  (1.5ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
38560
+  (0.2ms) SELECT sql
38561
+ FROM sqlite_master
38562
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38563
+ UNION ALL
38564
+ SELECT sql
38565
+ FROM sqlite_temp_master
38566
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38567
+
38568
+  (0.1ms)  SELECT sql
38569
+ FROM sqlite_master
38570
+ WHERE name='index_users_on_email' AND type='index'
38571
+ UNION ALL
38572
+ SELECT sql
38573
+ FROM sqlite_temp_master
38574
+ WHERE name='index_users_on_email' AND type='index'
38575
+ 
38576
+  (1.3ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
38577
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
38578
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
38579
+  (0.1ms) SELECT version FROM "schema_migrations"
38580
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713171838')
38581
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
38582
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
38583
+  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
38584
+  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
38585
+  (6.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
38586
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
38587
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
38588
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
38589
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
38590
+ 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.
38591
+ Unable to load Contacts file: /Users/coblej/Sites/ddr-models/spec/dummy/config/contacts.yml
38592
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
38593
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38594
+  (0.1ms)  SELECT sql
38595
+ FROM sqlite_master
38596
+ WHERE name='index_events_on_type' AND type='index'
38597
+ UNION ALL
38598
+ SELECT sql
38599
+ FROM sqlite_temp_master
38600
+ WHERE name='index_events_on_type' AND type='index'
38601
+ 
38602
+  (0.2ms) SELECT sql
38603
+ FROM sqlite_master
38604
+ WHERE name='index_events_on_pid' AND type='index'
38605
+ UNION ALL
38606
+ SELECT sql
38607
+ FROM sqlite_temp_master
38608
+ WHERE name='index_events_on_pid' AND type='index'
38609
+
38610
+  (0.1ms)  SELECT sql
38611
+ FROM sqlite_master
38612
+ WHERE name='index_events_on_outcome' AND type='index'
38613
+ UNION ALL
38614
+ SELECT sql
38615
+ FROM sqlite_temp_master
38616
+ WHERE name='index_events_on_outcome' AND type='index'
38617
+ 
38618
+  (0.1ms) SELECT sql
38619
+ FROM sqlite_master
38620
+ WHERE name='index_events_on_event_date_time' AND type='index'
38621
+ UNION ALL
38622
+ SELECT sql
38623
+ FROM sqlite_temp_master
38624
+ WHERE name='index_events_on_event_date_time' AND type='index'
38625
+
38626
+  (0.1ms)  SELECT sql
38627
+ FROM sqlite_master
38628
+ WHERE name='index_users_on_username' AND type='index'
38629
+ UNION ALL
38630
+ SELECT sql
38631
+ FROM sqlite_temp_master
38632
+ WHERE name='index_users_on_username' AND type='index'
38633
+ 
38634
+  (0.1ms) SELECT sql
38635
+ FROM sqlite_master
38636
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38637
+ UNION ALL
38638
+ SELECT sql
38639
+ FROM sqlite_temp_master
38640
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38641
+
38642
+  (0.1ms)  SELECT sql
38643
+ FROM sqlite_master
38644
+ WHERE name='index_users_on_email' AND type='index'
38645
+ UNION ALL
38646
+ SELECT sql
38647
+ FROM sqlite_temp_master
38648
+ WHERE name='index_users_on_email' AND type='index'
38649
+ 
38650
+  (1.2ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "event_date_time" datetime, "user_id" integer, "type" varchar(255), "pid" varchar(255), "software" varchar(255), "comment" text, "created_at" datetime, "updated_at" datetime, "summary" varchar(255), "outcome" varchar(255), "detail" text, "exception" text(65535), "user_key" varchar(255))
38651
+  (0.1ms) select sqlite_version(*)
38652
+  (0.9ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
38653
+  (0.1ms)  SELECT sql
38654
+ FROM sqlite_master
38655
+ WHERE name='index_events_on_event_date_time' AND type='index'
38656
+ UNION ALL
38657
+ SELECT sql
38658
+ FROM sqlite_temp_master
38659
+ WHERE name='index_events_on_event_date_time' AND type='index'
38660
+ 
38661
+  (0.9ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
38662
+  (0.1ms)  SELECT sql
38663
+ FROM sqlite_master
38664
+ WHERE name='index_events_on_outcome' AND type='index'
38665
+ UNION ALL
38666
+ SELECT sql
38667
+ FROM sqlite_temp_master
38668
+ WHERE name='index_events_on_outcome' AND type='index'
38669
+ 
38670
+  (0.1ms) SELECT sql
38671
+ FROM sqlite_master
38672
+ WHERE name='index_events_on_event_date_time' AND type='index'
38673
+ UNION ALL
38674
+ SELECT sql
38675
+ FROM sqlite_temp_master
38676
+ WHERE name='index_events_on_event_date_time' AND type='index'
38677
+
38678
+  (1.1ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
38679
+  (0.1ms) SELECT sql
38680
+ FROM sqlite_master
38681
+ WHERE name='index_events_on_pid' AND type='index'
38682
+ UNION ALL
38683
+ SELECT sql
38684
+ FROM sqlite_temp_master
38685
+ WHERE name='index_events_on_pid' AND type='index'
38686
+
38687
+  (0.1ms)  SELECT sql
38688
+ FROM sqlite_master
38689
+ WHERE name='index_events_on_outcome' AND type='index'
38690
+ UNION ALL
38691
+ SELECT sql
38692
+ FROM sqlite_temp_master
38693
+ WHERE name='index_events_on_outcome' AND type='index'
38694
+ 
38695
+  (0.1ms) SELECT sql
38696
+ FROM sqlite_master
38697
+ WHERE name='index_events_on_event_date_time' AND type='index'
38698
+ UNION ALL
38699
+ SELECT sql
38700
+ FROM sqlite_temp_master
38701
+ WHERE name='index_events_on_event_date_time' AND type='index'
38702
+
38703
+  (1.1ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
38704
+  (136.1ms) 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, "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 NOT NULL, "updated_at" datetime NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "first_name" varchar(255), "middle_name" varchar(255), "nickname" varchar(255), "last_name" varchar(255), "display_name" varchar(255))
38705
+  (8.5ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
38706
+  (0.2ms) SELECT sql
38707
+ FROM sqlite_master
38708
+ WHERE name='index_users_on_email' AND type='index'
38709
+ UNION ALL
38710
+ SELECT sql
38711
+ FROM sqlite_temp_master
38712
+ WHERE name='index_users_on_email' AND type='index'
38713
+
38714
+  (1.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
38715
+  (0.1ms) SELECT sql
38716
+ FROM sqlite_master
38717
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38718
+ UNION ALL
38719
+ SELECT sql
38720
+ FROM sqlite_temp_master
38721
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38722
+
38723
+  (0.1ms)  SELECT sql
38724
+ FROM sqlite_master
38725
+ WHERE name='index_users_on_email' AND type='index'
38726
+ UNION ALL
38727
+ SELECT sql
38728
+ FROM sqlite_temp_master
38729
+ WHERE name='index_users_on_email' AND type='index'
38730
+ 
38731
+  (37.6ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
38732
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
38733
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
38734
+  (0.1ms) SELECT version FROM "schema_migrations"
38735
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713171838')
38736
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
38737
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
38738
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
38739
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
38740
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
38741
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
38742
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
38743
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
38744
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
38745
+ 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.
38746
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38747
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38748
+  (0.1ms)  SELECT sql
38749
+ FROM sqlite_master
38750
+ WHERE name='index_events_on_type' AND type='index'
38751
+ UNION ALL
38752
+ SELECT sql
38753
+ FROM sqlite_temp_master
38754
+ WHERE name='index_events_on_type' AND type='index'
38755
+ 
38756
+  (0.1ms) SELECT sql
38757
+ FROM sqlite_master
38758
+ WHERE name='index_events_on_pid' AND type='index'
38759
+ UNION ALL
38760
+ SELECT sql
38761
+ FROM sqlite_temp_master
38762
+ WHERE name='index_events_on_pid' AND type='index'
38763
+
38764
+  (0.1ms)  SELECT sql
38765
+ FROM sqlite_master
38766
+ WHERE name='index_events_on_outcome' AND type='index'
38767
+ UNION ALL
38768
+ SELECT sql
38769
+ FROM sqlite_temp_master
38770
+ WHERE name='index_events_on_outcome' AND type='index'
38771
+ 
38772
+  (0.1ms) SELECT sql
38773
+ FROM sqlite_master
38774
+ WHERE name='index_events_on_event_date_time' AND type='index'
38775
+ UNION ALL
38776
+ SELECT sql
38777
+ FROM sqlite_temp_master
38778
+ WHERE name='index_events_on_event_date_time' AND type='index'
38779
+
38780
+  (0.1ms)  SELECT sql
38781
+ FROM sqlite_master
38782
+ WHERE name='index_users_on_username' AND type='index'
38783
+ UNION ALL
38784
+ SELECT sql
38785
+ FROM sqlite_temp_master
38786
+ WHERE name='index_users_on_username' AND type='index'
38787
+ 
38788
+  (0.1ms) SELECT sql
38789
+ FROM sqlite_master
38790
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38791
+ UNION ALL
38792
+ SELECT sql
38793
+ FROM sqlite_temp_master
38794
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38795
+
38796
+  (0.1ms)  SELECT sql
38797
+ FROM sqlite_master
38798
+ WHERE name='index_users_on_email' AND type='index'
38799
+ UNION ALL
38800
+ SELECT sql
38801
+ FROM sqlite_temp_master
38802
+ WHERE name='index_users_on_email' AND type='index'
38803
+ 
38804
+  (1.2ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "event_date_time" datetime, "user_id" integer, "type" varchar(255), "pid" varchar(255), "software" varchar(255), "comment" text, "created_at" datetime, "updated_at" datetime, "summary" varchar(255), "outcome" varchar(255), "detail" text, "exception" text(65535), "user_key" varchar(255))
38805
+  (0.1ms) select sqlite_version(*)
38806
+  (1.0ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
38807
+  (0.1ms)  SELECT sql
38808
+ FROM sqlite_master
38809
+ WHERE name='index_events_on_event_date_time' AND type='index'
38810
+ UNION ALL
38811
+ SELECT sql
38812
+ FROM sqlite_temp_master
38813
+ WHERE name='index_events_on_event_date_time' AND type='index'
38814
+ 
38815
+  (0.9ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
38816
+  (0.1ms)  SELECT sql
38817
+ FROM sqlite_master
38818
+ WHERE name='index_events_on_outcome' AND type='index'
38819
+ UNION ALL
38820
+ SELECT sql
38821
+ FROM sqlite_temp_master
38822
+ WHERE name='index_events_on_outcome' AND type='index'
38823
+ 
38824
+  (0.1ms) SELECT sql
38825
+ FROM sqlite_master
38826
+ WHERE name='index_events_on_event_date_time' AND type='index'
38827
+ UNION ALL
38828
+ SELECT sql
38829
+ FROM sqlite_temp_master
38830
+ WHERE name='index_events_on_event_date_time' AND type='index'
38831
+
38832
+  (1.0ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
38833
+  (0.1ms) SELECT sql
38834
+ FROM sqlite_master
38835
+ WHERE name='index_events_on_pid' AND type='index'
38836
+ UNION ALL
38837
+ SELECT sql
38838
+ FROM sqlite_temp_master
38839
+ WHERE name='index_events_on_pid' AND type='index'
38840
+
38841
+  (0.1ms)  SELECT sql
38842
+ FROM sqlite_master
38843
+ WHERE name='index_events_on_outcome' AND type='index'
38844
+ UNION ALL
38845
+ SELECT sql
38846
+ FROM sqlite_temp_master
38847
+ WHERE name='index_events_on_outcome' AND type='index'
38848
+ 
38849
+  (0.1ms) SELECT sql
38850
+ FROM sqlite_master
38851
+ WHERE name='index_events_on_event_date_time' AND type='index'
38852
+ UNION ALL
38853
+ SELECT sql
38854
+ FROM sqlite_temp_master
38855
+ WHERE name='index_events_on_event_date_time' AND type='index'
38856
+
38857
+  (1.0ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
38858
+  (1.1ms) 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, "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 NOT NULL, "updated_at" datetime NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "first_name" varchar(255), "middle_name" varchar(255), "nickname" varchar(255), "last_name" varchar(255), "display_name" varchar(255))
38859
+  (1.0ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
38860
+  (0.1ms) SELECT sql
38861
+ FROM sqlite_master
38862
+ WHERE name='index_users_on_email' AND type='index'
38863
+ UNION ALL
38864
+ SELECT sql
38865
+ FROM sqlite_temp_master
38866
+ WHERE name='index_users_on_email' AND type='index'
38867
+
38868
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
38869
+  (0.1ms) SELECT sql
38870
+ FROM sqlite_master
38871
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38872
+ UNION ALL
38873
+ SELECT sql
38874
+ FROM sqlite_temp_master
38875
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38876
+
38877
+  (0.1ms)  SELECT sql
38878
+ FROM sqlite_master
38879
+ WHERE name='index_users_on_email' AND type='index'
38880
+ UNION ALL
38881
+ SELECT sql
38882
+ FROM sqlite_temp_master
38883
+ WHERE name='index_users_on_email' AND type='index'
38884
+ 
38885
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
38886
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
38887
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
38888
+  (0.1ms) SELECT version FROM "schema_migrations"
38889
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713171838')
38890
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
38891
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
38892
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
38893
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
38894
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
38895
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
38896
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
38897
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
38898
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
38899
+ 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.
38900
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
38901
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38902
+  (0.2ms)  SELECT sql
38903
+ FROM sqlite_master
38904
+ WHERE name='index_events_on_type' AND type='index'
38905
+ UNION ALL
38906
+ SELECT sql
38907
+ FROM sqlite_temp_master
38908
+ WHERE name='index_events_on_type' AND type='index'
38909
+ 
38910
+  (0.2ms) SELECT sql
38911
+ FROM sqlite_master
38912
+ WHERE name='index_events_on_pid' AND type='index'
38913
+ UNION ALL
38914
+ SELECT sql
38915
+ FROM sqlite_temp_master
38916
+ WHERE name='index_events_on_pid' AND type='index'
38917
+
38918
+  (0.1ms)  SELECT sql
38919
+ FROM sqlite_master
38920
+ WHERE name='index_events_on_outcome' AND type='index'
38921
+ UNION ALL
38922
+ SELECT sql
38923
+ FROM sqlite_temp_master
38924
+ WHERE name='index_events_on_outcome' AND type='index'
38925
+ 
38926
+  (0.1ms) SELECT sql
38927
+ FROM sqlite_master
38928
+ WHERE name='index_events_on_event_date_time' AND type='index'
38929
+ UNION ALL
38930
+ SELECT sql
38931
+ FROM sqlite_temp_master
38932
+ WHERE name='index_events_on_event_date_time' AND type='index'
38933
+
38934
+  (0.1ms)  SELECT sql
38935
+ FROM sqlite_master
38936
+ WHERE name='index_users_on_username' AND type='index'
38937
+ UNION ALL
38938
+ SELECT sql
38939
+ FROM sqlite_temp_master
38940
+ WHERE name='index_users_on_username' AND type='index'
38941
+ 
38942
+  (0.1ms) SELECT sql
38943
+ FROM sqlite_master
38944
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38945
+ UNION ALL
38946
+ SELECT sql
38947
+ FROM sqlite_temp_master
38948
+ WHERE name='index_users_on_reset_password_token' AND type='index'
38949
+
38950
+  (0.1ms)  SELECT sql
38951
+ FROM sqlite_master
38952
+ WHERE name='index_users_on_email' AND type='index'
38953
+ UNION ALL
38954
+ SELECT sql
38955
+ FROM sqlite_temp_master
38956
+ WHERE name='index_users_on_email' AND type='index'
38957
+ 
38958
+  (9.4ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "event_date_time" datetime, "user_id" integer, "type" varchar(255), "pid" varchar(255), "software" varchar(255), "comment" text, "created_at" datetime, "updated_at" datetime, "summary" varchar(255), "outcome" varchar(255), "detail" text, "exception" text(65535), "user_key" varchar(255))
38959
+  (0.1ms) select sqlite_version(*)
38960
+  (1.4ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
38961
+  (0.2ms)  SELECT sql
38962
+ FROM sqlite_master
38963
+ WHERE name='index_events_on_event_date_time' AND type='index'
38964
+ UNION ALL
38965
+ SELECT sql
38966
+ FROM sqlite_temp_master
38967
+ WHERE name='index_events_on_event_date_time' AND type='index'
38968
+ 
38969
+  (1.5ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
38970
+  (0.1ms)  SELECT sql
38971
+ FROM sqlite_master
38972
+ WHERE name='index_events_on_outcome' AND type='index'
38973
+ UNION ALL
38974
+ SELECT sql
38975
+ FROM sqlite_temp_master
38976
+ WHERE name='index_events_on_outcome' AND type='index'
38977
+ 
38978
+  (0.1ms) SELECT sql
38979
+ FROM sqlite_master
38980
+ WHERE name='index_events_on_event_date_time' AND type='index'
38981
+ UNION ALL
38982
+ SELECT sql
38983
+ FROM sqlite_temp_master
38984
+ WHERE name='index_events_on_event_date_time' AND type='index'
38985
+
38986
+  (1.4ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
38987
+  (0.1ms) SELECT sql
38988
+ FROM sqlite_master
38989
+ WHERE name='index_events_on_pid' AND type='index'
38990
+ UNION ALL
38991
+ SELECT sql
38992
+ FROM sqlite_temp_master
38993
+ WHERE name='index_events_on_pid' AND type='index'
38994
+
38995
+  (0.1ms)  SELECT sql
38996
+ FROM sqlite_master
38997
+ WHERE name='index_events_on_outcome' AND type='index'
38998
+ UNION ALL
38999
+ SELECT sql
39000
+ FROM sqlite_temp_master
39001
+ WHERE name='index_events_on_outcome' AND type='index'
39002
+ 
39003
+  (0.1ms) SELECT sql
39004
+ FROM sqlite_master
39005
+ WHERE name='index_events_on_event_date_time' AND type='index'
39006
+ UNION ALL
39007
+ SELECT sql
39008
+ FROM sqlite_temp_master
39009
+ WHERE name='index_events_on_event_date_time' AND type='index'
39010
+
39011
+  (1.2ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
39012
+  (1.4ms) 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, "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 NOT NULL, "updated_at" datetime NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "first_name" varchar(255), "middle_name" varchar(255), "nickname" varchar(255), "last_name" varchar(255), "display_name" varchar(255))
39013
+  (1.2ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
39014
+  (0.2ms) SELECT sql
39015
+ FROM sqlite_master
39016
+ WHERE name='index_users_on_email' AND type='index'
39017
+ UNION ALL
39018
+ SELECT sql
39019
+ FROM sqlite_temp_master
39020
+ WHERE name='index_users_on_email' AND type='index'
39021
+
39022
+  (1.2ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
39023
+  (0.1ms) SELECT sql
39024
+ FROM sqlite_master
39025
+ WHERE name='index_users_on_reset_password_token' AND type='index'
39026
+ UNION ALL
39027
+ SELECT sql
39028
+ FROM sqlite_temp_master
39029
+ WHERE name='index_users_on_reset_password_token' AND type='index'
39030
+
39031
+  (0.1ms)  SELECT sql
39032
+ FROM sqlite_master
39033
+ WHERE name='index_users_on_email' AND type='index'
39034
+ UNION ALL
39035
+ SELECT sql
39036
+ FROM sqlite_temp_master
39037
+ WHERE name='index_users_on_email' AND type='index'
39038
+ 
39039
+  (1.2ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
39040
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
39041
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
39042
+  (0.1ms) SELECT version FROM "schema_migrations"
39043
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713171838')
39044
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
39045
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
39046
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
39047
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
39048
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
39049
+  (19.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
39050
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
39051
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
39052
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
39053
+ 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.
39054
+ Unable to load Contacts file: /Users/coblej/Sites/ddr-models/spec/dummy/config/contacts.yml