Class: Kentouzu::InstallGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(dirname) ⇒ Object



16
17
18
# File 'lib/generators/kentouzu/install_generator.rb', line 16

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

Instance Method Details

#create_migration_fileObject



12
13
14
# File 'lib/generators/kentouzu/install_generator.rb', line 12

def create_migration_file
  migration_template 'create_drafts.rb', 'db/migrate/create_drafts.rb'
end