Custom Migrator plugin

Plugin details

Custom migrator is an alternate migration tool for rails migrations which is multi-developer environment friendly.

Websitehttp://rubyforge.org/projects/custommigrator/ Repositoryhttp://custommigrator.rubyforge.org/svn/plugins/custom_migrator/ Author Babu Naidu Tags migration LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://custommigrator.rubyforge.org/svn/plugins/custom_migrator/

The custom migrator uses a different scheme for db rails migrations. It deals with three artifacts, 1) migration_list.yml, 2) migrations_bookmark table in the database, and 3) migration files.

migration_list.yml
===================

It maintains a master list file called migration_list.yml which contains an ordered list of migration file names. For example, for the contents in db/migration directory db/migration

		* create_user.rb
		* create_account.rb
		* create_employee.rb
		* migration_list.yml


contents of migration_list.yml

			- create_user.rb
			- create_account.rb
			- create_employee.rb


The order is based on the sequence of migrations creation using ruby script/generation migration [migrationName] command.

migrations_bookmark table
===================
This is the table automatically created (if not present already) before running migrations. This contains one column called book_mark and at any point of time it will have 0 or 1 rows. The value will be file name of a migration.

migrations
===================
These are similar to the standard rails migration files, but don't contain numbers or timestamps in the file names.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, about 1 year ago