Sha256: 02aebbab369bd769c1ae2759aba11c272d2822f410c2b46fe49c2d876467a1c1
Contents?: true
Size: 592 Bytes
Versions: 38
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/blazer.yml" end def migration_version "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]" end end end end
Version data entries
38 entries across 38 versions & 2 rubygems