class Blazer::Generators::InstallGenerator

Public Instance Methods

copy_config() click to toggle source
# File lib/generators/blazer/install_generator.rb, line 28
def copy_config
  template "config.yml", "config/blazer.yml"
end
copy_migration() click to toggle source
# File lib/generators/blazer/install_generator.rb, line 24
def copy_migration
  migration_template "install.rb", "db/migrate/install_blazer.rb", migration_version: migration_version
end
migration_version() click to toggle source
# File lib/generators/blazer/install_generator.rb, line 32
def migration_version
  if ActiveRecord::VERSION::MAJOR >= 5
    "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]"
  end
end