Class: RelationalAudit::InstallGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(dirname) ⇒ Object



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

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

Instance Method Details

#create_migration_fileObject



9
10
11
# File 'lib/generators/relational_audit/install_generator.rb', line 9

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