Class: SayWhen::MigrationGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- SayWhen::MigrationGenerator
- Extended by:
- ActiveRecord::Generators::Migration
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/say_when/migration/migration_generator.rb
Instance Method Summary collapse
Instance Method Details
#manifest ⇒ Object
21 22 23 |
# File 'lib/generators/say_when/migration/migration_generator.rb', line 21 def manifest migration_template('migration.rb', 'db/migrate/create_say_when_tables.rb') end |
#prefix ⇒ Object
17 18 19 |
# File 'lib/generators/say_when/migration/migration_generator.rb', line 17 def prefix SayWhen.[:table_prefix] || '' end |