Class: Stealth::Migrations::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/stealth/migrations/generators.rb

Class Method Summary collapse

Class Method Details

.migration(name, options = "") ⇒ Object



9
10
11
12
13
14
# File 'lib/stealth/migrations/generators.rb', line 9

def self.migration(name, options="")
  generator_params = [name] + options.split(" ")
  Rails::Generators.invoke("active_record:migration", generator_params,
    destination_root: Stealth.root
  )
end