Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
61 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# frozen_string_literal: true | ||
require 'active_fedora/noid' | ||
|
||
ActiveFedora::Noid.configure do |config| | ||
config.minter_class = ActiveFedora::Noid::Minter::Db | ||
config.template = '.reeeddeeddk' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
db/migrate/20170110142322_create_minter_states.active_fedora_noid_engine.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This migration comes from active_fedora_noid_engine (originally 20160610010003) | ||
# frozen_string_literal: true | ||
class CreateMinterStates < ActiveRecord::Migration | ||
def change | ||
create_table :minter_states do |t| | ||
t.string :namespace, null: false, default: 'default' | ||
t.string :template, null: false | ||
t.text :counters | ||
t.bigint :seq, default: 0 | ||
t.binary :random | ||
t.timestamps null: false | ||
end | ||
# Use both model and DB-level constraints for consistency while scaling horizontally | ||
add_index :minter_states, :namespace, unique: true | ||
end | ||
end |
7 changes: 7 additions & 0 deletions
7
db/migrate/20170110142323_rename_minter_state_random_to_rand.active_fedora_noid_engine.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This migration comes from active_fedora_noid_engine (originally 20161021203429) | ||
# frozen_string_literal: true | ||
class RenameMinterStateRandomToRand < ActiveRecord::Migration | ||
def change | ||
rename_column :minter_states, :random, :rand | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# frozen_string_literal: true | ||
require 'active_fedora/noid/rspec' | ||
|
||
RSpec.configure do |config| | ||
include ActiveFedora::Noid::RSpec | ||
|
||
config.before(:suite) { disable_production_minter! } | ||
config.after(:suite) { enable_production_minter! } | ||
end |