lib/dbmigrator/environment.rb in dbmigrator-0.7.4 vs lib/dbmigrator/environment.rb in dbmigrator-0.7.5
- old
+ new
@@ -1,16 +1,12 @@
require 'active_record/migration'
module DbMigrator
module Environment
- def production?
- "production" == ENV["DBM_ENV"]
+ def env
+ ENV["DBM_ENV"]
end
-
- def local?
- !production?
- end
-
+
module_function :production?, :local?
end
end
ActiveRecord::Migration.class_eval do