Domain Migrations plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install http://domain-migrations-plugin.googlecode.com/svn/trunk/domain-migrations/
Example:
class CreateProjects < ActiveRecord::Migration def self.up create_domain :activedom, :string, :limit => 5, :default => 'False', :null => false do value.in('True', 'False') | value.in('Yes', 'No') end create_table :projects do |t| t.string :name, :limit => 60, :default => 'pepe' t.string :description, :limit => 300 t.active :activedom t.timestamps end end def self.down drop_table :projects drop_domain :activedom end end
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: Guest, 3 months ago

