Class: PrintingPress::PublishableGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Extended by:
ActiveRecord::Generators::Migration
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/printing_press/publishable/publishable_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_migration_fileObject



14
15
16
# File 'lib/generators/printing_press/publishable/publishable_generator.rb', line 14

def create_migration_file
	migration_template "create_published_table.rb", "db/migrate/create_published_#{file_path.gsub('/', '_').pluralize}.rb"
end