ddr-models 1.14.2 → 1.15.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: 4e3f9db93577153000e2e839a6d5779ab490194b
4
- data.tar.gz: 2c3a8dea104c544d7800ab695f89f03e21cec325
3
+ metadata.gz: bd67beca52585b36660b225f33b890d87a0a7687
4
+ data.tar.gz: 7b36f76a83df4995c3f8579d465acad20bd6c57c
5
5
  SHA512:
6
- metadata.gz: ec3b3fb0abf937b899cf18b6c7defd4aa0afd1a8a29eedab3c5f87f93e84ee50bb4c93f564b274c42392505ba58a1b26b7d028d72f9168f2f5cc4d1d03fdc035
7
- data.tar.gz: df4396e48304dc820e290b3280b82ed13dafb83c2ce05592dd496f7d2bbbe5b26ea517382b25b4f69033ebb8f6f5b7b7f4e2c372232da05c3ca2d4a353dc1de3
6
+ metadata.gz: 0b89f316d01cbcbdeeffba3dcb09edf5a6239b6eb7bfd53f0cbec0bd444b10f29d0aad1cfc3ace044b87d91bdda8bf2122768ddddd8029c2ea1705f8931ad3d9
7
+ data.tar.gz: 9bd529c3586fcad6b473e534737514a94064deb04801d939d93524e55b99bd24b17f107c3cd68b3b9562c3531ff866fed04806a20defa14962e20ad3082c38b8
@@ -0,0 +1,7 @@
1
+ module ModelsHelper
2
+
3
+ def admin_set_full_name(slug)
4
+ I18n.t("ddr.admin_set.#{slug}")
5
+ end
6
+
7
+ end
@@ -24,6 +24,8 @@ module Ddr
24
24
 
25
25
  property :local_id, predicate: RDF::Vocab::Identifiers.local
26
26
 
27
+ property :admin_set, predicate: Ddr::Vocab::Asset.adminSet
28
+
27
29
  end
28
30
  end
29
31
  end
@@ -7,6 +7,7 @@ module Ddr
7
7
 
8
8
  ACCESS_ROLE = solr_name :access_role, :stored_sortable
9
9
  ACTIVE_FEDORA_MODEL = solr_name :active_fedora_model, :stored_sortable
10
+ ADMIN_SET = solr_name :admin_set, :stored_sortable
10
11
  COLLECTION_URI = solr_name :collection_uri, :symbol
11
12
  CONTENT_CONTROL_GROUP = solr_name :content_control_group, :searchable, type: :string
12
13
  CONTENT_SIZE = solr_name :content_size, :stored_sortable, type: :integer
data/lib/ddr/models.rb CHANGED
@@ -58,6 +58,9 @@ module Ddr
58
58
  # Regexp for building external file subpath from hex digest
59
59
  mattr_accessor :external_file_subpath_regexp
60
60
 
61
+ # Image server URL
62
+ mattr_accessor :image_server_url
63
+
61
64
  # Whether permanent IDs should be automatically assigned on create
62
65
  mattr_accessor :auto_assign_permanent_ids
63
66
 
@@ -48,6 +48,10 @@ module Ddr
48
48
  Ddr::Models.external_file_subpath_pattern = ENV["EXTERNAL_FILE_SUBPATH_PATTERN"] || "--"
49
49
  end
50
50
 
51
+ initializer "ddr_models.image_server" do
52
+ Ddr::Models.image_server_url = ENV["IMAGE_SERVER_URL"]
53
+ end
54
+
51
55
  # Add custom predicates to ActiveFedora
52
56
  initializer "ddr_models.predicates" do
53
57
  ActiveFedora::Predicates.set_predicates(Ddr::Metadata::PREDICATES)
@@ -9,7 +9,11 @@ module Ddr
9
9
  versionable: true,
10
10
  control_group: "M"
11
11
 
12
- has_attributes :local_id, :permanent_id, :permanent_url, :workflow_state,
12
+ has_attributes :admin_set,
13
+ :local_id,
14
+ :permanent_id,
15
+ :permanent_url,
16
+ :workflow_state,
13
17
  datastream: "adminMetadata",
14
18
  multiple: false
15
19
 
@@ -11,17 +11,15 @@ 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
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,
18
22
  }
19
- if permanent_id.present?
20
- fields[PERMANENT_ID] = permanent_id
21
- end
22
- if permanent_url.present?
23
- fields[PERMANENT_URL] = permanent_url
24
- end
25
23
  if respond_to? :fixity_checks
26
24
  last_fixity_check = fixity_checks.last
27
25
  fields.merge!(last_fixity_check.to_solr) if last_fixity_check
@@ -60,9 +58,6 @@ module Ddr
60
58
  if respond_to? :roles
61
59
  fields.merge!(roles.index_fields)
62
60
  end
63
- if local_id.present?
64
- fields[LOCAL_ID] = local_id
65
- end
66
61
  fields
67
62
  end
68
63
 
@@ -18,6 +18,10 @@ module Ddr
18
18
  id.sub(/:/, "-")
19
19
  end
20
20
 
21
+ def admin_set
22
+ get(Ddr::IndexFields::ADMIN_SET)
23
+ end
24
+
21
25
  def local_id
22
26
  get(Ddr::IndexFields::LOCAL_ID)
23
27
  end
@@ -1,5 +1,5 @@
1
1
  module Ddr
2
2
  module Models
3
- VERSION = "1.14.2"
3
+ VERSION = "1.15.0"
4
4
  end
5
5
  end
@@ -20,6 +20,10 @@
20
20
  property "workflowState",
21
21
  label: "Workflow State"
22
22
 
23
+ property "adminSet",
24
+ label: "Administrative Set",
25
+ comment: "A name under which objects (principally collections) are grouped for administrative purposes."
26
+
23
27
  end
24
28
  end
25
29
  end
Binary file
@@ -28564,3 +28564,615 @@ Using the default predicate_mappings.yml that comes with active-fedora. If you
28564
28564
   (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
28565
28565
   (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
28566
28566
   (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
28567
+ 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.
28568
+ ActiveRecord::SchemaMigration Load (32.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
28569
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28570
+  (0.1ms)  SELECT sql
28571
+ FROM sqlite_master
28572
+ WHERE name='index_events_on_type' AND type='index'
28573
+ UNION ALL
28574
+ SELECT sql
28575
+ FROM sqlite_temp_master
28576
+ WHERE name='index_events_on_type' AND type='index'
28577
+ 
28578
+  (0.2ms) SELECT sql
28579
+ FROM sqlite_master
28580
+ WHERE name='index_events_on_pid' AND type='index'
28581
+ UNION ALL
28582
+ SELECT sql
28583
+ FROM sqlite_temp_master
28584
+ WHERE name='index_events_on_pid' AND type='index'
28585
+
28586
+  (0.1ms)  SELECT sql
28587
+ FROM sqlite_master
28588
+ WHERE name='index_events_on_outcome' AND type='index'
28589
+ UNION ALL
28590
+ SELECT sql
28591
+ FROM sqlite_temp_master
28592
+ WHERE name='index_events_on_outcome' AND type='index'
28593
+ 
28594
+  (0.1ms) SELECT sql
28595
+ FROM sqlite_master
28596
+ WHERE name='index_events_on_event_date_time' AND type='index'
28597
+ UNION ALL
28598
+ SELECT sql
28599
+ FROM sqlite_temp_master
28600
+ WHERE name='index_events_on_event_date_time' AND type='index'
28601
+
28602
+  (0.1ms)  SELECT sql
28603
+ FROM sqlite_master
28604
+ WHERE name='index_users_on_username' AND type='index'
28605
+ UNION ALL
28606
+ SELECT sql
28607
+ FROM sqlite_temp_master
28608
+ WHERE name='index_users_on_username' AND type='index'
28609
+ 
28610
+  (0.1ms) SELECT sql
28611
+ FROM sqlite_master
28612
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28613
+ UNION ALL
28614
+ SELECT sql
28615
+ FROM sqlite_temp_master
28616
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28617
+
28618
+  (0.2ms)  SELECT sql
28619
+ FROM sqlite_master
28620
+ WHERE name='index_users_on_email' AND type='index'
28621
+ UNION ALL
28622
+ SELECT sql
28623
+ FROM sqlite_temp_master
28624
+ WHERE name='index_users_on_email' AND type='index'
28625
+ 
28626
+  (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" varchar(255), "user_key" varchar(255))
28627
+  (0.1ms) select sqlite_version(*)
28628
+  (1.5ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
28629
+  (0.1ms)  SELECT sql
28630
+ FROM sqlite_master
28631
+ WHERE name='index_events_on_event_date_time' AND type='index'
28632
+ UNION ALL
28633
+ SELECT sql
28634
+ FROM sqlite_temp_master
28635
+ WHERE name='index_events_on_event_date_time' AND type='index'
28636
+ 
28637
+  (0.9ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
28638
+  (0.1ms)  SELECT sql
28639
+ FROM sqlite_master
28640
+ WHERE name='index_events_on_outcome' AND type='index'
28641
+ UNION ALL
28642
+ SELECT sql
28643
+ FROM sqlite_temp_master
28644
+ WHERE name='index_events_on_outcome' AND type='index'
28645
+ 
28646
+  (0.1ms) SELECT sql
28647
+ FROM sqlite_master
28648
+ WHERE name='index_events_on_event_date_time' AND type='index'
28649
+ UNION ALL
28650
+ SELECT sql
28651
+ FROM sqlite_temp_master
28652
+ WHERE name='index_events_on_event_date_time' AND type='index'
28653
+
28654
+  (0.9ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
28655
+  (0.1ms) SELECT sql
28656
+ FROM sqlite_master
28657
+ WHERE name='index_events_on_pid' AND type='index'
28658
+ UNION ALL
28659
+ SELECT sql
28660
+ FROM sqlite_temp_master
28661
+ WHERE name='index_events_on_pid' AND type='index'
28662
+
28663
+  (0.1ms)  SELECT sql
28664
+ FROM sqlite_master
28665
+ WHERE name='index_events_on_outcome' AND type='index'
28666
+ UNION ALL
28667
+ SELECT sql
28668
+ FROM sqlite_temp_master
28669
+ WHERE name='index_events_on_outcome' AND type='index'
28670
+ 
28671
+  (0.1ms) SELECT sql
28672
+ FROM sqlite_master
28673
+ WHERE name='index_events_on_event_date_time' AND type='index'
28674
+ UNION ALL
28675
+ SELECT sql
28676
+ FROM sqlite_temp_master
28677
+ WHERE name='index_events_on_event_date_time' AND type='index'
28678
+
28679
+  (1.0ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
28680
+  (74.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))
28681
+  (13.7ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
28682
+  (0.2ms) SELECT sql
28683
+ FROM sqlite_master
28684
+ WHERE name='index_users_on_email' AND type='index'
28685
+ UNION ALL
28686
+ SELECT sql
28687
+ FROM sqlite_temp_master
28688
+ WHERE name='index_users_on_email' AND type='index'
28689
+
28690
+  (16.5ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
28691
+  (0.1ms) SELECT sql
28692
+ FROM sqlite_master
28693
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28694
+ UNION ALL
28695
+ SELECT sql
28696
+ FROM sqlite_temp_master
28697
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28698
+
28699
+  (0.1ms)  SELECT sql
28700
+ FROM sqlite_master
28701
+ WHERE name='index_users_on_email' AND type='index'
28702
+ UNION ALL
28703
+ SELECT sql
28704
+ FROM sqlite_temp_master
28705
+ WHERE name='index_users_on_email' AND type='index'
28706
+ 
28707
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
28708
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
28709
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
28710
+  (0.1ms) SELECT version FROM "schema_migrations"
28711
+  (14.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
28712
+  (9.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
28713
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
28714
+  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
28715
+  (6.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
28716
+  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
28717
+  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
28718
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
28719
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
28720
+ 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.
28721
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
28722
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
28723
+  (0.2ms)  SELECT sql
28724
+ FROM sqlite_master
28725
+ WHERE name='index_events_on_type' AND type='index'
28726
+ UNION ALL
28727
+ SELECT sql
28728
+ FROM sqlite_temp_master
28729
+ WHERE name='index_events_on_type' AND type='index'
28730
+ 
28731
+  (0.1ms) SELECT sql
28732
+ FROM sqlite_master
28733
+ WHERE name='index_events_on_pid' AND type='index'
28734
+ UNION ALL
28735
+ SELECT sql
28736
+ FROM sqlite_temp_master
28737
+ WHERE name='index_events_on_pid' AND type='index'
28738
+
28739
+  (0.1ms)  SELECT sql
28740
+ FROM sqlite_master
28741
+ WHERE name='index_events_on_outcome' AND type='index'
28742
+ UNION ALL
28743
+ SELECT sql
28744
+ FROM sqlite_temp_master
28745
+ WHERE name='index_events_on_outcome' AND type='index'
28746
+ 
28747
+  (0.1ms) SELECT sql
28748
+ FROM sqlite_master
28749
+ WHERE name='index_events_on_event_date_time' AND type='index'
28750
+ UNION ALL
28751
+ SELECT sql
28752
+ FROM sqlite_temp_master
28753
+ WHERE name='index_events_on_event_date_time' AND type='index'
28754
+
28755
+  (0.1ms)  SELECT sql
28756
+ FROM sqlite_master
28757
+ WHERE name='index_users_on_username' AND type='index'
28758
+ UNION ALL
28759
+ SELECT sql
28760
+ FROM sqlite_temp_master
28761
+ WHERE name='index_users_on_username' AND type='index'
28762
+ 
28763
+  (0.1ms) SELECT sql
28764
+ FROM sqlite_master
28765
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28766
+ UNION ALL
28767
+ SELECT sql
28768
+ FROM sqlite_temp_master
28769
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28770
+
28771
+  (0.1ms)  SELECT sql
28772
+ FROM sqlite_master
28773
+ WHERE name='index_users_on_email' AND type='index'
28774
+ UNION ALL
28775
+ SELECT sql
28776
+ FROM sqlite_temp_master
28777
+ WHERE name='index_users_on_email' AND type='index'
28778
+ 
28779
+  (2.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" varchar(255), "user_key" varchar(255))
28780
+  (0.1ms) select sqlite_version(*)
28781
+  (1.1ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
28782
+  (0.1ms)  SELECT sql
28783
+ FROM sqlite_master
28784
+ WHERE name='index_events_on_event_date_time' AND type='index'
28785
+ UNION ALL
28786
+ SELECT sql
28787
+ FROM sqlite_temp_master
28788
+ WHERE name='index_events_on_event_date_time' AND type='index'
28789
+ 
28790
+  (0.9ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
28791
+  (0.1ms)  SELECT sql
28792
+ FROM sqlite_master
28793
+ WHERE name='index_events_on_outcome' AND type='index'
28794
+ UNION ALL
28795
+ SELECT sql
28796
+ FROM sqlite_temp_master
28797
+ WHERE name='index_events_on_outcome' AND type='index'
28798
+ 
28799
+  (0.1ms) SELECT sql
28800
+ FROM sqlite_master
28801
+ WHERE name='index_events_on_event_date_time' AND type='index'
28802
+ UNION ALL
28803
+ SELECT sql
28804
+ FROM sqlite_temp_master
28805
+ WHERE name='index_events_on_event_date_time' AND type='index'
28806
+
28807
+  (1.0ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
28808
+  (0.1ms) SELECT sql
28809
+ FROM sqlite_master
28810
+ WHERE name='index_events_on_pid' AND type='index'
28811
+ UNION ALL
28812
+ SELECT sql
28813
+ FROM sqlite_temp_master
28814
+ WHERE name='index_events_on_pid' AND type='index'
28815
+
28816
+  (0.1ms)  SELECT sql
28817
+ FROM sqlite_master
28818
+ WHERE name='index_events_on_outcome' AND type='index'
28819
+ UNION ALL
28820
+ SELECT sql
28821
+ FROM sqlite_temp_master
28822
+ WHERE name='index_events_on_outcome' AND type='index'
28823
+ 
28824
+  (0.1ms) SELECT sql
28825
+ FROM sqlite_master
28826
+ WHERE name='index_events_on_event_date_time' AND type='index'
28827
+ UNION ALL
28828
+ SELECT sql
28829
+ FROM sqlite_temp_master
28830
+ WHERE name='index_events_on_event_date_time' AND type='index'
28831
+
28832
+  (1.0ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
28833
+  (1.5ms) 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))
28834
+  (1.1ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
28835
+  (0.1ms) SELECT sql
28836
+ FROM sqlite_master
28837
+ WHERE name='index_users_on_email' AND type='index'
28838
+ UNION ALL
28839
+ SELECT sql
28840
+ FROM sqlite_temp_master
28841
+ WHERE name='index_users_on_email' AND type='index'
28842
+
28843
+  (1.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
28844
+  (0.1ms) SELECT sql
28845
+ FROM sqlite_master
28846
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28847
+ UNION ALL
28848
+ SELECT sql
28849
+ FROM sqlite_temp_master
28850
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28851
+
28852
+  (0.1ms)  SELECT sql
28853
+ FROM sqlite_master
28854
+ WHERE name='index_users_on_email' AND type='index'
28855
+ UNION ALL
28856
+ SELECT sql
28857
+ FROM sqlite_temp_master
28858
+ WHERE name='index_users_on_email' AND type='index'
28859
+ 
28860
+  (1.1ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
28861
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
28862
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
28863
+  (0.1ms) SELECT version FROM "schema_migrations"
28864
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
28865
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
28866
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
28867
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
28868
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
28869
+  (17.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
28870
+  (5.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
28871
+  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
28872
+  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
28873
+ 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.
28874
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28875
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28876
+  (0.1ms)  SELECT sql
28877
+ FROM sqlite_master
28878
+ WHERE name='index_events_on_type' AND type='index'
28879
+ UNION ALL
28880
+ SELECT sql
28881
+ FROM sqlite_temp_master
28882
+ WHERE name='index_events_on_type' AND type='index'
28883
+ 
28884
+  (0.1ms) SELECT sql
28885
+ FROM sqlite_master
28886
+ WHERE name='index_events_on_pid' AND type='index'
28887
+ UNION ALL
28888
+ SELECT sql
28889
+ FROM sqlite_temp_master
28890
+ WHERE name='index_events_on_pid' AND type='index'
28891
+
28892
+  (0.1ms)  SELECT sql
28893
+ FROM sqlite_master
28894
+ WHERE name='index_events_on_outcome' AND type='index'
28895
+ UNION ALL
28896
+ SELECT sql
28897
+ FROM sqlite_temp_master
28898
+ WHERE name='index_events_on_outcome' AND type='index'
28899
+ 
28900
+  (0.1ms) SELECT sql
28901
+ FROM sqlite_master
28902
+ WHERE name='index_events_on_event_date_time' AND type='index'
28903
+ UNION ALL
28904
+ SELECT sql
28905
+ FROM sqlite_temp_master
28906
+ WHERE name='index_events_on_event_date_time' AND type='index'
28907
+
28908
+  (0.1ms)  SELECT sql
28909
+ FROM sqlite_master
28910
+ WHERE name='index_users_on_username' AND type='index'
28911
+ UNION ALL
28912
+ SELECT sql
28913
+ FROM sqlite_temp_master
28914
+ WHERE name='index_users_on_username' AND type='index'
28915
+ 
28916
+  (0.1ms) SELECT sql
28917
+ FROM sqlite_master
28918
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28919
+ UNION ALL
28920
+ SELECT sql
28921
+ FROM sqlite_temp_master
28922
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28923
+
28924
+  (0.1ms)  SELECT sql
28925
+ FROM sqlite_master
28926
+ WHERE name='index_users_on_email' AND type='index'
28927
+ UNION ALL
28928
+ SELECT sql
28929
+ FROM sqlite_temp_master
28930
+ WHERE name='index_users_on_email' AND type='index'
28931
+ 
28932
+  (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" varchar(255), "user_key" varchar(255))
28933
+  (0.0ms) select sqlite_version(*)
28934
+  (0.9ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
28935
+  (0.1ms)  SELECT sql
28936
+ FROM sqlite_master
28937
+ WHERE name='index_events_on_event_date_time' AND type='index'
28938
+ UNION ALL
28939
+ SELECT sql
28940
+ FROM sqlite_temp_master
28941
+ WHERE name='index_events_on_event_date_time' AND type='index'
28942
+ 
28943
+  (0.9ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
28944
+  (0.1ms)  SELECT sql
28945
+ FROM sqlite_master
28946
+ WHERE name='index_events_on_outcome' AND type='index'
28947
+ UNION ALL
28948
+ SELECT sql
28949
+ FROM sqlite_temp_master
28950
+ WHERE name='index_events_on_outcome' AND type='index'
28951
+ 
28952
+  (0.1ms) SELECT sql
28953
+ FROM sqlite_master
28954
+ WHERE name='index_events_on_event_date_time' AND type='index'
28955
+ UNION ALL
28956
+ SELECT sql
28957
+ FROM sqlite_temp_master
28958
+ WHERE name='index_events_on_event_date_time' AND type='index'
28959
+
28960
+  (0.8ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
28961
+  (0.1ms) SELECT sql
28962
+ FROM sqlite_master
28963
+ WHERE name='index_events_on_pid' AND type='index'
28964
+ UNION ALL
28965
+ SELECT sql
28966
+ FROM sqlite_temp_master
28967
+ WHERE name='index_events_on_pid' AND type='index'
28968
+
28969
+  (0.1ms)  SELECT sql
28970
+ FROM sqlite_master
28971
+ WHERE name='index_events_on_outcome' AND type='index'
28972
+ UNION ALL
28973
+ SELECT sql
28974
+ FROM sqlite_temp_master
28975
+ WHERE name='index_events_on_outcome' AND type='index'
28976
+ 
28977
+  (0.1ms) SELECT sql
28978
+ FROM sqlite_master
28979
+ WHERE name='index_events_on_event_date_time' AND type='index'
28980
+ UNION ALL
28981
+ SELECT sql
28982
+ FROM sqlite_temp_master
28983
+ WHERE name='index_events_on_event_date_time' AND type='index'
28984
+
28985
+  (0.9ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
28986
+  (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))
28987
+  (1.5ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
28988
+  (0.1ms) SELECT sql
28989
+ FROM sqlite_master
28990
+ WHERE name='index_users_on_email' AND type='index'
28991
+ UNION ALL
28992
+ SELECT sql
28993
+ FROM sqlite_temp_master
28994
+ WHERE name='index_users_on_email' AND type='index'
28995
+
28996
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
28997
+  (0.1ms) SELECT sql
28998
+ FROM sqlite_master
28999
+ WHERE name='index_users_on_reset_password_token' AND type='index'
29000
+ UNION ALL
29001
+ SELECT sql
29002
+ FROM sqlite_temp_master
29003
+ WHERE name='index_users_on_reset_password_token' AND type='index'
29004
+
29005
+  (0.1ms)  SELECT sql
29006
+ FROM sqlite_master
29007
+ WHERE name='index_users_on_email' AND type='index'
29008
+ UNION ALL
29009
+ SELECT sql
29010
+ FROM sqlite_temp_master
29011
+ WHERE name='index_users_on_email' AND type='index'
29012
+ 
29013
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
29014
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
29015
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
29016
+  (0.1ms) SELECT version FROM "schema_migrations"
29017
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
29018
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
29019
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
29020
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
29021
+  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
29022
+  (7.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
29023
+  (19.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
29024
+  (6.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
29025
+  (7.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
29026
+ 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.
29027
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
29028
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
29029
+  (0.1ms)  SELECT sql
29030
+ FROM sqlite_master
29031
+ WHERE name='index_events_on_type' AND type='index'
29032
+ UNION ALL
29033
+ SELECT sql
29034
+ FROM sqlite_temp_master
29035
+ WHERE name='index_events_on_type' AND type='index'
29036
+ 
29037
+  (0.1ms) SELECT sql
29038
+ FROM sqlite_master
29039
+ WHERE name='index_events_on_pid' AND type='index'
29040
+ UNION ALL
29041
+ SELECT sql
29042
+ FROM sqlite_temp_master
29043
+ WHERE name='index_events_on_pid' AND type='index'
29044
+
29045
+  (0.1ms)  SELECT sql
29046
+ FROM sqlite_master
29047
+ WHERE name='index_events_on_outcome' AND type='index'
29048
+ UNION ALL
29049
+ SELECT sql
29050
+ FROM sqlite_temp_master
29051
+ WHERE name='index_events_on_outcome' AND type='index'
29052
+ 
29053
+  (0.1ms) SELECT sql
29054
+ FROM sqlite_master
29055
+ WHERE name='index_events_on_event_date_time' AND type='index'
29056
+ UNION ALL
29057
+ SELECT sql
29058
+ FROM sqlite_temp_master
29059
+ WHERE name='index_events_on_event_date_time' AND type='index'
29060
+
29061
+  (0.1ms)  SELECT sql
29062
+ FROM sqlite_master
29063
+ WHERE name='index_users_on_username' AND type='index'
29064
+ UNION ALL
29065
+ SELECT sql
29066
+ FROM sqlite_temp_master
29067
+ WHERE name='index_users_on_username' AND type='index'
29068
+ 
29069
+  (0.1ms) SELECT sql
29070
+ FROM sqlite_master
29071
+ WHERE name='index_users_on_reset_password_token' AND type='index'
29072
+ UNION ALL
29073
+ SELECT sql
29074
+ FROM sqlite_temp_master
29075
+ WHERE name='index_users_on_reset_password_token' AND type='index'
29076
+
29077
+  (0.1ms)  SELECT sql
29078
+ FROM sqlite_master
29079
+ WHERE name='index_users_on_email' AND type='index'
29080
+ UNION ALL
29081
+ SELECT sql
29082
+ FROM sqlite_temp_master
29083
+ WHERE name='index_users_on_email' AND type='index'
29084
+ 
29085
+  (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" varchar(255), "user_key" varchar(255))
29086
+  (0.1ms) select sqlite_version(*)
29087
+  (0.9ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
29088
+  (0.1ms)  SELECT sql
29089
+ FROM sqlite_master
29090
+ WHERE name='index_events_on_event_date_time' AND type='index'
29091
+ UNION ALL
29092
+ SELECT sql
29093
+ FROM sqlite_temp_master
29094
+ WHERE name='index_events_on_event_date_time' AND type='index'
29095
+ 
29096
+  (1.2ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
29097
+  (0.1ms)  SELECT sql
29098
+ FROM sqlite_master
29099
+ WHERE name='index_events_on_outcome' AND type='index'
29100
+ UNION ALL
29101
+ SELECT sql
29102
+ FROM sqlite_temp_master
29103
+ WHERE name='index_events_on_outcome' AND type='index'
29104
+ 
29105
+  (0.1ms) SELECT sql
29106
+ FROM sqlite_master
29107
+ WHERE name='index_events_on_event_date_time' AND type='index'
29108
+ UNION ALL
29109
+ SELECT sql
29110
+ FROM sqlite_temp_master
29111
+ WHERE name='index_events_on_event_date_time' AND type='index'
29112
+
29113
+  (1.0ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
29114
+  (0.1ms) SELECT sql
29115
+ FROM sqlite_master
29116
+ WHERE name='index_events_on_pid' AND type='index'
29117
+ UNION ALL
29118
+ SELECT sql
29119
+ FROM sqlite_temp_master
29120
+ WHERE name='index_events_on_pid' AND type='index'
29121
+
29122
+  (0.1ms)  SELECT sql
29123
+ FROM sqlite_master
29124
+ WHERE name='index_events_on_outcome' AND type='index'
29125
+ UNION ALL
29126
+ SELECT sql
29127
+ FROM sqlite_temp_master
29128
+ WHERE name='index_events_on_outcome' AND type='index'
29129
+ 
29130
+  (0.1ms) SELECT sql
29131
+ FROM sqlite_master
29132
+ WHERE name='index_events_on_event_date_time' AND type='index'
29133
+ UNION ALL
29134
+ SELECT sql
29135
+ FROM sqlite_temp_master
29136
+ WHERE name='index_events_on_event_date_time' AND type='index'
29137
+
29138
+  (1.0ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
29139
+  (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))
29140
+  (0.9ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
29141
+  (0.1ms) SELECT sql
29142
+ FROM sqlite_master
29143
+ WHERE name='index_users_on_email' AND type='index'
29144
+ UNION ALL
29145
+ SELECT sql
29146
+ FROM sqlite_temp_master
29147
+ WHERE name='index_users_on_email' AND type='index'
29148
+
29149
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
29150
+  (0.1ms) SELECT sql
29151
+ FROM sqlite_master
29152
+ WHERE name='index_users_on_reset_password_token' AND type='index'
29153
+ UNION ALL
29154
+ SELECT sql
29155
+ FROM sqlite_temp_master
29156
+ WHERE name='index_users_on_reset_password_token' AND type='index'
29157
+
29158
+  (0.1ms)  SELECT sql
29159
+ FROM sqlite_master
29160
+ WHERE name='index_users_on_email' AND type='index'
29161
+ UNION ALL
29162
+ SELECT sql
29163
+ FROM sqlite_temp_master
29164
+ WHERE name='index_users_on_email' AND type='index'
29165
+ 
29166
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
29167
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
29168
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
29169
+  (0.1ms) SELECT version FROM "schema_migrations"
29170
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
29171
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
29172
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
29173
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
29174
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
29175
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
29176
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
29177
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
29178
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')