class MigrationGenerator
Public Class Methods
new(runtime_args, runtime_options = {})
click to toggle source
Calls superclass method
# File lib/data_plan/generators/migration/migration_generator.rb, line 12 def initialize(runtime_args, runtime_options = {}) super @migration_arg_name = runtime_args.first end
Public Instance Methods
manifest()
click to toggle source
# File lib/data_plan/generators/migration/migration_generator.rb, line 17 def manifest mg = MigrationGeneratorCore.new up,down,hints,migration_name = mg.calculate_migration( @migration_arg_name ) record do |m| m.migration_template 'migration.rb', 'db/migrate', :assigns => { :up => up, :down => down, :hints => hints, :migration_name => migration_name.camelize }, :migration_file_name => migration_name end end