ruby on rails - rake db:test:prepare does not setup test databse -


i using rails 4.0.0.rc1 sqlite3 , trying setup test database testing. bundle exec rake db:test:prepare did not create tables in test database. after following this question managed setup test database running bundle exec rake db:schema:load rails_env=test -t can reason task bundle exec rake db:test:prepare not setup database.

below output of 2 rake tasks.

indika@indika-f3e:~/documents/my_app$ bundle exec rake db:test:prepare -t ** invoke db:test:prepare (first_time) ** execute db:test:prepare indika@indika-f3e:~/documents/my_app$   indika@indika-f3e:~/documents/my_app$ bundle exec rake db:schema:load rails_env=test -t ** invoke db:schema:load (first_time) ** invoke environment (first_time) ** execute environment ** invoke db:load_config (first_time) ** execute db:load_config ** execute db:schema:load -- create_table("questions", {:force=>true})    -> 0.2590s -- initialize_schema_migrations_table()    -> 0.0025s -- assume_migrated_upto_version(20130518181153, ["/home/indika/documents/my_app/db/migrate"])    -> 0.0007s indika@indika-f3e:~/documents/my_app$  

the database configuration in database.yaml this.

development:   adapter: sqlite3   database: db/development.sqlite3   pool: 5   timeout: 5000 test: &test   adapter: sqlite3   database: db/test.sqlite3   pool: 5   timeout: 5000 cucumber:   <<: *test 

please note problem solved. curious know had gone wrong.

rake db:migrate rails_env=test works ruby 2.0.0 , rails 4.0.0.rc1 rake db:test:prepare reason doesn't work new versions.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -