This demo app was created to demonstrate a bug with the jets migration task.
Steps to reproduce:
git clone https://github.com/murjax/jets_test_demo.git
cd jets_test_demo
bundle
jets db:create
jets db:migrate
bundle exec rspec
The test should fail with an error:
ActionView::Template::Error: Mysql2::Error: Table 'demo_test.posts' doesn't exist: SELECT `posts`.* FROM `posts`
The posts
table was not created on the test database.
JETS_ENV=test jets db:migrate
bundle exec rspec
The test passes because the posts
table was created on the test database.