Class: ActsAsTaggableMigrationGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_migration_fileObject



2
3
4
# File 'lib/generators/migration_generator.rb', line 2

def create_migration_file
  create_file "db/migrations/initializer.rb", File.open('schema.rb').read
end