Class: ExceptionHandler::MigrationGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- ExceptionHandler::MigrationGenerator
- Defined in:
- lib/generators/exception_handler/migration_generator.rb
Instance Method Summary collapse
-
#create_errors_migration ⇒ Object
Create.
-
#table_name ⇒ Object
Table Name - false = off, true = errors, value = value Always outputs string for some reason…
Instance Method Details
#create_errors_migration ⇒ Object
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_name ⇒ Object
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 |