When I upgraded my version of ruby, i had to reinstall my gems. Somewhere down the line it completely cleared out my database for my project.
I cant run
rake db:migrate
because i no longer have a schema_migrations table. But when I go to create a new table I get this error:
#1005 - Can't create table 'schema_migrations' (errno: 13)
Please check privileges of directory containing database.
How can I go about recreating this table?
Got it! I had to delete my schema.rb file and create a new database and change my database.yml file to connect to that one instead. Then I ran
rake db:migrateand it created the schema_migrations table and continued migrating back to my old state.