Class: Badgeable::Generators::MigrationsGenerator

Inherits:
Base
  • Object
show all
Extended by:
ActiveRecord::Generators::Migration
Includes:
Rails::Generators::Migration
Defined in:
lib/badgeable_active_record/generators/migrations/migrations_generator.rb

Instance Method Summary collapse

Methods inherited from Base

source_root

Instance Method Details

#generate_badges_migrationObject



10
11
12
# File 'lib/badgeable_active_record/generators/migrations/migrations_generator.rb', line 10

def generate_badges_migration
  migration_template "badge_migration.rb", "db/migrate/create_badges.rb"
end

#generate_badgings_migrationObject



14
15
16
# File 'lib/badgeable_active_record/generators/migrations/migrations_generator.rb', line 14

def generate_badgings_migration
  migration_template "badging_migration.rb", "db/migrate/create_badgings.rb"
end