Sha256: bbdb0046dac59ab05ba2eefad0954af0cc1c56dc5a9312d23131f58f0b67f170
Contents?: true
Size: 592 Bytes
Versions: 4
Compression:
Stored size: 592 Bytes
Contents
require "rails/generators/active_record" module Blazer module Generators class InstallGenerator < Rails::Generators::Base include ActiveRecord::Generators::Migration source_root File.join(__dir__, "templates") def copy_migration migration_template "install.rb", "db/migrate/install_blazer.rb", migration_version: migration_version end def copy_config template "config.yml", "config/finery.yml" end def migration_version "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems