I am trying to learn rails following SAAS course in coursera.
I ran
rake db:migrate
db:test:prepare
to create a test db and run some cucumber steps against it.
I need a way to insert some movies in the corresponding movie table in test .
I can see a scehma.rb in db folder, and also in models, there is just Movie table created by class Movie < ActiveRecord::Base , but nothing such created for test dbs ?
Where can I find the testDB creation files , how do I find all the table names in my DB . I dont even know the db name to run :
SELECT * FROM dbname.sqlite_master WHERE type='table';
Also if there are some better/easier ways of doing this please share your experience. I expect the suggestions to be something that I can try in 5 mins and not spend debugging time to install a new gem etc, although you can mention them as an additional comment.
Thanks