Class: Sequel::Generators::SessionMigrationGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/sequel/session_migration/session_migration_generator.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Base

base_name, next_migration_number, source_root

Instance Method Details

#create_migration_fileObject



14
15
16
17
# File 'lib/generators/sequel/session_migration/session_migration_generator.rb', line 14

def create_migration_file
  validate_file_name!
  migration_template 'migration.rb.erb', "db/migrate/#{file_name}.rb"
end