That is the command-line: cd /path/to/your/app rake db:reset RAILS_ENV=production (or whatever)
That will do the whole job. It will drop the database, re-create it, and build up all the tables from the schema.rb. Walter > On Feb 23, 2019, at 7:30 PM, brainiacs...@gmail.com wrote: > > Thank you Walter. What if I am performing the task from a command line? > > On Saturday, February 23, 2019 at 7:21:36 PM UTC-5, Walter Lee Davis wrote: > You can use rake db:reset in your Rails root, with the correct RAILS_ENV= set > in the same line. Your database user (as configured in the database.yml file) > will have to have the authority to drop the database. > > Walter > > > On Feb 23, 2019, at 6:18 PM, braini...@gmail.com wrote: > > > > Hey Everyone, > > > > I was just wondering if anyone knew the mysql equivalent to $ heroku > > pg:reset DATABASE. > > > > Thank you > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to rubyonrails-ta...@googlegroups.com. > > To post to this group, send email to rubyonra...@googlegroups.com. > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/rubyonrails-talk/80629938-6c4d-435e-8e3a-ea0077a8dad0%40googlegroups.com. > > > > For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/face91e8-6313-41f7-9209-09db2bd9652c%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/BB6579DA-C026-4E9D-BDD2-0D5C503D9DAB%40wdstudio.com. For more options, visit https://groups.google.com/d/optout.