Sha256: d8124bf0380228c7d29b2aa78bcafd072615dd820b90009f7f1c4c7594d2c31e

Contents?: true

Size: 284 Bytes

Versions: 4

Compression:

Stored size: 284 Bytes

Contents

require 'migration_assist'

class MigrationGenerator < Rails::Generators::NamedBase 
  include Rails::Migration::Assist

  desc "Creates a migration"

  source_root File.dirname(__FILE__) + '/templates'
      
  def create_migration     
    migration name, 'create_users'
  end
end 

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
generator-spec-0.6.6 lib/generators/migration/migration_generator.rb
generator-spec-0.6.5 lib/generators/migration/migration_generator.rb
generator-spec-0.6.4 lib/generators/migration/migration_generator.rb
generator-spec-0.6.3 lib/generators/migration/migration_generator.rb