Sha256: e17ce0e4a18b622e61eab4008002baa903964ba91245885e90f3ec6d78fff02a
Contents?: true
Size: 500 Bytes
Versions: 3
Compression:
Stored size: 500 Bytes
Contents
namespace :db do task :new_migration, :name, :options do |t, args| name = args[:name] || ENV['name'] options = args[:options] || ENV['options'] unless name puts "Error: must provide name of migration to generate." puts "For example: rake #{t.name} name=add_field_to_form" abort end if options StandaloneMigrations::Generator.migration name, options.gsub('/', ' ') else StandaloneMigrations::Generator.migration name end end end
Version data entries
3 entries across 3 versions & 1 rubygems