Openshift how to create a table on ruby on rails application? via console -
openshift how create table on ruby on rails application? via console
i'have gem installed called 'rhc', how can create table ruby on rails application via rhc command?
well looking @ documentation helps, there seems areas can at
https://developers.openshift.com/en/ruby-getting-started.html
https://developers.openshift.com/en/managing-adding-a-database.html
these seem have info need
if have started app, best provide code show have done can see how best you, poorly constructed question gets "poorly" constructed answer, if can provide more can more
hope helps
if using openshift rails (3/4) quickstart, automatically setup run rake db:migrate command when git push deploy code application (https://github.com/openshift/rails4-example/blob/master/.openshift/action_hooks/deploy). if trying manually, need ssh application, cd ~/app-root/repo directory, , run "raild_env={your_env} bundle exec rake db:migrate", possible won't work because rails gem not installed. best way git push method (once have written migrations)
Comments
Post a Comment