Class: ActicInstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/actic_install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(dirname) ⇒ Object

def self.source_root

    @source_root ||= File.join(File.dirname(__FILE__), 'templates')
end


13
14
15
# File 'lib/generators/actic_install_generator.rb', line 13

def self.next_migration_number(dirname)
  ActiveRecord::Generators::Base.next_migration_number(dirname)
end

Instance Method Details

#create_migration_fileObject



17
18
19
# File 'lib/generators/actic_install_generator.rb', line 17

def create_migration_file
  migration_template 'migration.rb.tmpl', "db/migrate/create_actic_components.rb"
end