Sha256: 1562df843d70409501934b21891c22f0e3f93c5e40ea77c5b8e211495b8c7667

Contents?: true

Size: 326 Bytes

Versions: 1

Compression:

Stored size: 326 Bytes

Contents

module GhostSchema
  module Tasks
    module Enhancer
      extend self

      def enhance
        task = Rake::Task['db:migrate']
        task.enhance(['db:ghost:store_versions_before_migrations'])
        task.enhance do
          Rake::Task['db:ghost:copy_migrated_versions'].invoke
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ghost_schema-0.1.0 lib/ghost_schema/tasks/enhancer.rb