Class: Blogit::Generators::TableNameMigrationGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/blogit/table_name_migration_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_migration_fileObject



9
10
11
# File 'lib/generators/blogit/table_name_migration_generator.rb', line 9

def copy_migration_file
  template "rename_blogit_tables.rb", "db/migrate/#{Time.now.to_s(:number)}_rename_blogit_tables.rb"
end