active_record
home > recipes > active_record
Tasks
Task documentation
active_record:setup
Create (ActiveRecord) database yaml in shared path.
Note: If both :db_host and :db_socket are used, db_socket wins.
Parameters
- db_name
- Database name
- db_user
- Database user
- db_pass
- Database password
- db_host
- Database host
- Defaults to
nil - db_socket
- Database socket
- Defaults to
nil - database_yml_template
- Database yml template
- Defaults to
"rails/database.yml.erb"
active_record:update_code
Make symlink for database yaml
ducktyper.com, 14th May 2008
Theme extended from Paul Battley