class HeraCms::Generators::InstallGenerator

Public Instance Methods

copy_config() click to toggle source
# File lib/generators/hera_cms/install_generator.rb, line 13
def copy_config
  template "config.rb", "config/initializers/hera.rb"
end
copy_migration() click to toggle source
# File lib/generators/hera_cms/install_generator.rb, line 9
def copy_migration
  migration_template "install.rb", "db/migrate/install_hera.rb", migration_version: migration_version
end
migration_version() click to toggle source
# File lib/generators/hera_cms/install_generator.rb, line 17
def migration_version
  "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]"
end