Class: Royal::Generators::MigrationGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(dir) ⇒ Object



13
14
15
# File 'lib/generators/royal/migration_generator.rb', line 13

def self.next_migration_number(dir)
  ::ActiveRecord::Generators::Base.next_migration_number(dir)
end

Instance Method Details

#create_point_balances_migrationObject



17
18
19
# File 'lib/generators/royal/migration_generator.rb', line 17

def create_point_balances_migration
  migration_template 'create_point_balances.rb.erb', 'db/migrate/create_point_balances.rb'
end