class MigrationGenerator < Templater::Generator def self.source_root File.join %W| #{File.dirname(__FILE__)} .. .. .. templates migration | end first_argument :name, :require => true directory :migrations, File.join(%w|db migrate|) template :migration do |t| t.source = File.join(%w|db migrate migration.rb|) t.destination = File.join(%w|db migrate %migration_time%_%underscore%.rb|) end end