Class: Saseo::InstallGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(dirname) ⇒ Object



19
20
21
# File 'lib/generators/saseo/install_generator.rb', line 19

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

Instance Method Details

#create_migration_fileObject



14
15
16
17
# File 'lib/generators/saseo/install_generator.rb', line 14

def create_migration_file
  add_saseo_migration('add_saseo_trigger_function')
  Rails::Generators.invoke('saseo:trigger', table_names) unless table_names.empty?
end