Sha256: ee5b5bca6070b0790d3533952c35940bf5abe90bec3c5f95c2284d37cbfdda69

Contents?: true

Size: 285 Bytes

Versions: 1

Compression:

Stored size: 285 Bytes

Contents

namespace :db do
  task :new_migration do |t|
    unless name = ENV['name']
      puts "Error: must provide name of migration to generate."
      puts "For example: rake #{t.name} name=add_field_to_form"
      abort
    end
    StandaloneMigrations::Generator.migration name
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
standalone_migrations-2.0.0 lib/standalone_migrations/tasks/db/new_migration.rake