mardi 24 février 2015

Creating tables from a cloned app sqlite3 Rails

I'm very new to sqlite3 and can't seem to figure out how to get it to create tables.


I have the code for a Rails app that I am updating to Rails 3.0.3 from Rails 2.3.12. I had managed to get the database working when it was still Rails 2.3.12, however since I upgraded Rails it seems to have 'lost' the tables and I can't figure out how to recreate them.


When I do bundle exec rake db:create it says that the test and development databases already exist.


However, when I do bundle exec rake db:migrate it says



rake aborted!
Could not find table 'comments'


All of the migration files are still there, as is the schema, but I don't know how to create the tables?


Aucun commentaire:

Enregistrer un commentaire