Skip to content

Commit

Permalink
Merge pull request #63 from projecthydra/separate_migration
Browse files Browse the repository at this point in the history
Remove db:migrate from the generator
  • Loading branch information
atz committed Feb 23, 2017
2 parents 9f24341 + 9b742d3 commit fb7a478
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -111,7 +111,11 @@ The database-based minter stores minter state information in your application's
$ 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'
Expand Down
5 changes: 0 additions & 5 deletions lib/generators/active_fedora/noid/install_generator.rb
Expand Up @@ -14,11 +14,6 @@ def banner

def migrations
rake 'active_fedora_noid_engine:install:migrations'
rake 'db:migrate'
end

def seed
generate 'active_fedora:noid:seed'
end
end
end
Expand Down
Expand Up @@ -10,5 +10,6 @@ class TestAppGenerator < Rails::Generators::Base

def install_engine
generate 'active_fedora:noid:install'
rake 'db:migrate'
end
end

0 comments on commit fb7a478

Please sign in to comment.