Thor::Group
Responsible for generating migration files for the appropriate ORM component.
Creates the migration file within a Padrino project.
# File lib/padrino-gen/generators/migration.rb, line 32 def create_migration self.destination_root = options[:root] if in_app_root? self.behavior = :revoke if options[:destroy] if include_component_module_for(:orm) create_migration_file(name, name, columns) else say "<= You need an ORM adapter for run this generator. Sorry!" raise SystemExit end else say "You are not at the root of a Padrino application! (config/boot.rb not found)" end end
Generated with the Darkfish Rdoc Generator 2.