class ConsistencyCheck::Generators::InstallGenerator

Public Class Methods

next_migration_number(path) click to toggle source
# File lib/generators/consistency_check/install/install_generator.rb, line 12
def self.next_migration_number(path)
  next_migration_number = current_migration_number(path) + 1
  ActiveRecord::Migration.next_migration_number(next_migration_number)
end

Public Instance Methods

create_job() click to toggle source
# File lib/generators/consistency_check/install/install_generator.rb, line 26
def create_job
  fname = 'app/jobs/consistency_check/definitions.rb'
  template('jobs/consistency_check/definitions.rb.erb', fname)
end
create_migrations() click to toggle source
# File lib/generators/consistency_check/install/install_generator.rb, line 17
def create_migrations
  migration_template 'migrations/create_consistency_check_results.rb.erb', 'db/migrate/create_consistency_check_results.rb'
end
create_model() click to toggle source
# File lib/generators/consistency_check/install/install_generator.rb, line 21
def create_model
  fname = 'app/models/consistency_check_result.rb'
  template('models/consistency_check_result.rb.erb', fname)
end