Class: EasyTags::Generators::MigrationGenerator

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

Overview

generates database migration

Usage

rails g easy_tags:migration

Instance Method Summary collapse

Instance Method Details

#copy_migrationsObject


15
16
17
18
19
20
21
# File 'lib/generators/easy_tags/migration_generator.rb', line 15

def copy_migrations
  migration_template(
    'create_tables_migration.rb.erb',
    "#{db_migrate_path}/easy_tags_create_tables.rb",
    migration_version: migration_version
  )
end