Class: StandaloneMigrations::Generator
- Inherits:
-
Object
- Object
- StandaloneMigrations::Generator
- Defined in:
- lib/standalone_migrations/generator.rb
Class Method Summary collapse
Class Method Details
.migration(name, options = "") ⇒ Object
6 7 8 9 10 |
# File 'lib/standalone_migrations/generator.rb', line 6 def self.migration(name, ="") generator_params = [name] + .split(" ") Rails::Generators.invoke "active_record:migration", generator_params, :destination_root => Rails.root end |