yaru
yaru

Reputation: 1310

How to prevent creation of development.sqlite3 file?

I changed my database.yml file to use postgresql instead of sqlite3. But when I do rake db:migrate - development.sqlite3 file gets created.

Here's my database.yml file:

default: &default
  adapter: postgresql
  encoding: unicode
  pool: 5
  host: localhost

development:
  <<: *default
  database: scrumban_development

test:
  <<: *default
  database: scrumban_test

production:
  <<: *default
  database: scrumban_production
  username: scrumban
  password: <%= ENV['scrumban_DATABASE_PASSWORD'] %>

Upvotes: 1

Views: 56

Answers (1)

Clark
Clark

Reputation: 616

Don't include the sqlite3 gem and it should stop creating it.

Upvotes: 1

Related Questions