Sha256: febd14554f8c6da007f15e83d03795c18d7d0ae6db6fa1a297d0427843266fe5
Contents?: true
Size: 312 Bytes
Versions: 1
Compression:
Stored size: 312 Bytes
Contents
require 'active_record/migration' module DbMigrator module Environment def production? "production" == ENV["DBM_ENV"] end def local? !production? end module_function :production?, :local? end end ActiveRecord::Migration.class_eval do include DbMigrator::Environment end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dbmigrator-0.7.4 | lib/dbmigrator/environment.rb |