Discussion Forums
- Topic List
- Most Recent Posts
- Sign In for more options
system "rake db:migrate", system "rake db:migrate RAILS_ENV=development", Rake::Task['db:migrate'].invoke, not working in controller. Actually I have to run this rake task from controller or plugin.Can any one pls help me with this stuff?
I got the solution after trying a couple of hours.
For windows system(“ start rake db:migrateâ€)
For Linux system(“rake db:migrate RAILS_ENV=developmentâ€)
I tested it in my Local PC
