Skip to content
This repository has been archived by the owner on Jan 29, 2018. It is now read-only.

Kit management with Rake

razor-x edited this page May 12, 2012 · 7 revisions

Kit ships with some basic rake commands to help manage your kit.

All of these should be run from the kit's root directory.

Database management

$ rake db:destroy
$ rake db:create
$ rake db:migrate[direction, steps] # both arguments optional, steps can be integer or version
$ rake db:reset                     #=> run the above three tasks in that order

Kit construction

$ rake mk:migration[migration_name] #=> create a new migration migrations/YYYYMMDDHHMMSS_migration_name.rb
$ rake mk:model[model_name]         #=> create a new model models/model_name.rb

Kit management

$ rake add:group[group_name] #=> add a new group named "group name" and create an action module actions/group_name.rb