Sha256: d265fe22f326a71db37e96b807dc804307b866d8a6f34608aa4357b6edf4f4fd
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
require 'rails/generators' require 'rails/generators/active_record' require 'rails/generators/active_record/migration/migration_generator' module FourthBase class MigrationGenerator < ActiveRecord::Generators::MigrationGenerator source_root ActiveRecord::Generators::MigrationGenerator.source_root def self.desc require 'rails/generators/rails/migration/migration_generator' Rails::Generators::MigrationGenerator.desc end include(Module.new{ def migration_template(*args) args[1].sub! 'db/migrate', "#{Railtie.config_path}/migrate" if args[1] super(*args) end }) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fourthbase-2.1.2 | lib/rails/fourth_base/generators/migration_generator.rb |