ankane/multiverse

can't create dev database

Closed this issue · 1 comments

Running the initial setup creates a test database, but points the dev database to the default table.
If I manually create the dev database, when I run migrations they are run against the default development database.

bin/rails generate multiverse:db analytics
      create  app/models/analytics_record.rb
      append  config/database.yml
      create  db/analytics/migrate
env DB=analytics bin/rails db:create
Database 'application_dev' already exists
Database 'analytics_test' created

Found the problem.
I was also using makara on the app. the <<default in the generated template was forcing somehow the task to use the default database instead of the new one.
Removing the default and setting the urls manually fixed the issue