No commit activity in last 3 years
No release in over 3 years
Rake db managements tasks for projects that use ActiveRecord without Rails.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

activerecord-db-tasks

Rake db management tasks for projects that use ActiveRecord without Rails.
rake db:create, rake db:migrate, etc.

Usage

Install the gem: gem install activerecord-db-tasks
Include it in your Rakefile: require 'activerecord-db/tasks'

Tasks

rake db:create        # Create the database in config/database.yml
rake db:drop          # Drops the database in config/database.yml
rake db:forward       # Pushes the schema to the next version (specify steps w/ STEP=n).
rake db:migrate       # Migrate the database (target specific version with VERSION=x).
rake db:migrate:down  # Runs the "down" for a given migration VERSION.
rake db:migrate:redo  # Rollback the database one migration and re migrate up (options: STEP=x, VERSION=x).
rake db:migrate:up    # Runs the "up" for a given migration VERSION.
rake db:reset         # Resets your database using your migrations.
rake db:rollback      # Rolls the schema back to the previous version (specify steps w/ STEP=n).
rake db:version       # Retrieves the current schema version number.