Module: RailsSQLPrettifier::ProtectedEnv
- Included in:
- Niceql
- Defined in:
- lib/rails_sql_prettifier/protected_env.rb
Instance Method Summary collapse
Instance Method Details
#protected_env? ⇒ Boolean
6 7 8 9 |
# File 'lib/rails_sql_prettifier/protected_env.rb', line 6 def protected_env? ActiveRecord::Base.connection.migration_context.protected_environment? || defined?(Rails) && !(Rails.env.test? || Rails.env.development?) end |