Class: SayWhen::MigrationGenerator

Inherits:
ActiveRecord::Generators::Base
  • Object
show all
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

#manifestObject



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

#prefixObject



17
18
19
# File 'lib/generators/say_when/migration/migration_generator.rb', line 17

def prefix
  SayWhen.options[:table_prefix] || ''
end