Sha256: a4305fedc63bc5cff7f9530639711de1353d8948ee4cbff6c6e219ad0194ffe1

Contents?: true

Size: 231 Bytes

Versions: 2

Compression:

Stored size: 231 Bytes

Contents

require 'active_record/migration'

module DbMigrator
  module Environment
    def env
      ENV["DBM_ENV"]
    end
   
    module_function :env
  end
end

ActiveRecord::Migration.class_eval do
  include DbMigrator::Environment
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dbmigrator-0.7.7 lib/dbmigrator/environment.rb
dbmigrator-0.7.6 lib/dbmigrator/environment.rb