Class: ExceptionHandler::MigrationGenerator

Inherits:
ActiveRecord::Generators::Base
  • Object
show all
Defined in:
lib/generators/exception_handler/migration_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_errors_migrationObject

Create



30
31
32
# File 'lib/generators/exception_handler/migration_generator.rb', line 30

def create_errors_migration
  migration_template "migration.rb.erb", "db/migrate/create_errors.rb"
end

#table_nameObject

Table Name - false = off, true = errors, value = value Always outputs string for some reason…



23
24
25
# File 'lib/generators/exception_handler/migration_generator.rb', line 23

def table_name
  ExceptionHandler.config.db
end