I deleted my Schema.rb by mistake (sort of) and I can't seem to be able to regenerate it into db/ by using rake db:dump, I don't really know what to do at this point.
Some suggested rake db:dump:all rake db:create:all rake db:migrate
Nothing worked. Please help!
Try running bundle exec rake db:schema:dump
.
Refer to Active Record Migrations for more info.
You could try
rake db:drop db:create db:migrate
That should do it. If you're not getting any errors and the schema file is not being regenerated, then something is potentially wacky with your local environment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With