Module: Rails3Generators::MigrationHelper

Includes:
Rails::Generators::Migration
Included in:
DataMapper::Generators::Base
Defined in:
lib/generators/helpers/migration_helper.rb

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#migration_numberObject

Returns the value of attribute migration_number.



7
8
9
# File 'lib/generators/helpers/migration_helper.rb', line 7

def migration_number
  @migration_number
end

Class Method Details

.included(base) ⇒ Object

:nodoc:



33
34
35
# File 'lib/generators/helpers/migration_helper.rb', line 33

def self.included(base) #:nodoc: 
  base.extend ClassMethods      
end

Instance Method Details

#run_migration(options) ⇒ Object



38
39
40
# File 'lib/generators/helpers/migration_helper.rb', line 38

def run_migration(options)
  run "rails g migration #{options}"
end