Class: BackOps::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_migrationsObject



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/generators/back_ops/install_generator.rb', line 12

def create_migrations
  migration_template(
    'create_back_ops_tables.rb',
    'db/migrate/create_back_ops_tables.rb',
    migration_version: migration_version,
  )
  migration_template(
    'update_back_ops_tables_v1.rb',
    'db/migrate/update_back_ops_tables_v1.rb',
    migration_version: migration_version,
  )
end