Skip to content

agerauer/more_migration_paths

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MoreMigrationPaths
==================

This plugin adds the possibility to add more migration paths to rails. This is helpful if you want to split your migrations in multiple directories. You could have migrations in plugins or gems for example.

Usage
=====

Install with:

script/plugin install git://github.com/helle/more_migration_paths.git

After that just add something like this to an initializer:

ActiveRecord::Migrator.add_migration_path(File.join(RAILS_ROOT, 'lib', 'extra_migrations'))

The next time you do a db:migrate, your migrations in RAILS_ROOT/lib/extra_migrations will automatically be found and migrated.


Copyright (c) 2009 Andreas Gerauer @ Kupferwerk, released under the MIT license

About

Rails 2.3 Plugin which allows you to add custom migration paths

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages