README.md in active_fedora-noid-2.0.1 vs README.md in active_fedora-noid-2.0.2
- old
+ new
@@ -97,11 +97,11 @@
This will make sure your objects have Noid-like identifiers (e.g. `bb22bb22b`) that map to URIs in Fedora (e.g. `bb/22/bb/22/bb22bb22b`).
## Overriding default behavior
-The default minter in ActiveFedora::Noid 2.0.0 is the file-backed minter to preserve default behavior.
+The default minter in ActiveFedora::Noid 2.x is the file-backed minter to preserve default behavior.
To better support multi-host production installations that expect a shared database but not necessarily a shared filesystem (e.g., between load-balanced Rails applications), we highly recommend swapping in the database-backed minter.
### Use database-based minter state
@@ -109,12 +109,16 @@
```bash
$ rails generate active_fedora:noid:install
```
-This will create the necessary database tables and seed the database minter. To start minting identifiers with the new minter, override the AF::Noid configuration in e.g. `config/initializers/active_fedora-noid.rb`:
+This will create the necessary database migrations.
+Then run `rake db:migrate`
+
+To start minting identifiers with the new minter, override the AF::Noid configuration in e.g. `config/initializers/active_fedora-noid.rb`:
+
```ruby
require 'active_fedora/noid'
ActiveFedora::Noid.configure do |config|
config.minter_class = ActiveFedora::Noid::Minter::Db
@@ -132,10 +136,10 @@
config.before(:suite) { disable_production_minter! }
config.after(:suite) { enable_production_minter! }
end
```
-If you switch to the new database-backed minter and want to include in that minter the state of your current file-backed minter, AF::Noid 2.0.0 provides a new rake task that will copy your minter's state from the filesystem to the database:
+If you switch to the new database-backed minter and want to include in that minter the state of your current file-backed minter, AF::Noid 2.x provides a new rake task that will copy your minter's state from the filesystem to the database:
```bash
# For migrating minter state from a file to a database
$ rake active_fedora:noid:migrate:file_to_database
# For migrating minter state from a database to a file