Skip to content

Conversation

@rosle
Copy link
Contributor

@rosle rosle commented Apr 12, 2019

What happened

✅ Update database configurations

Insight

When running rake db:setup on local, it should create 2 databases for development and test. Currently it create only one.

Screen Shot 2562-04-12 at 11 41 25
Screen Shot 2562-04-12 at 12 52 54

The problem is in our env, we set

development:
  <<: *default
  DB_NAME: "#{app_name}_development"

test:
  <<: *default
  DB_NAME: "#{app_name}_test"

So when we run rake db:setup on local, it always get the <name>_development because we're on the development.

To fix, I move the suffix to database.yml instead.

Proof Of Work

After:
Screen Shot 2562-04-12 at 11 40 06
Screen Shot 2562-04-12 at 12 52 48

@rosle rosle added this to the 3.2.0 milestone Apr 12, 2019
@rosle rosle changed the title Update database config and remove Update database config Apr 12, 2019
@olivierobert olivierobert merged commit 2df8b72 into develop Apr 12, 2019
@olivierobert olivierobert deleted the chore/update-config branch April 12, 2019 07:50
@rosle rosle mentioned this pull request Apr 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants