JModels contains the database schema in db/migrations and models in j_models.
Usage :
- run migrations on production - ruby ./script/migration [ENV=env] [VERSION=version]
- to require 'j_models' from rails apps - $: << 'JModel_dir_path'; require 'j_models';
Dependencies
Deploymet
- Dependecies
- a machine with ruby, rubygems and capistrano installed. It is generally your developer machine.
- repository JDeploy/j_models
- From inside JDeploy/j_models, You can run the following commands
- cap deploy:update # deploy the master branch to production
- cap db:migrate # run the latest migrations on production