Sha256: ef17399f08ac0fa76e79fcbba71eadc06b5acd95057a4d1045aed339c3e0b854
Contents?: true
Size: 488 Bytes
Versions: 7
Compression:
Stored size: 488 Bytes
Contents
module Virgo class MigrationsGenerator < Rails::Generators::Base source_root File.expand_path('../../../../..', __FILE__) def copy_migrations Dir["#{engine_root}/db/migrate/*.rb"].each do |abs_path| relative_path = abs_path.gsub("#{engine_root}/", '') unless File.directory?(abs_path) copy_file relative_path, relative_path end end end def engine_root File.expand_path('../../../../..', __FILE__) end end end
Version data entries
7 entries across 7 versions & 1 rubygems