class Archer::Generators::InstallGenerator

Public Instance Methods

copy_migration() click to toggle source
# File lib/generators/archer/install_generator.rb, line 9
def copy_migration
  migration_template "migration.rb", "db/migrate/create_archer_history.rb", migration_version: migration_version
end
migration_version() click to toggle source
# File lib/generators/archer/install_generator.rb, line 13
def migration_version
  "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]"
end