Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Defined in:
- lib/activerecord-db-tools/activerecord.rb
Instance Method Summary collapse
Instance Method Details
#readonly? ⇒ Boolean
4 5 6 |
# File 'lib/activerecord-db-tools/activerecord.rb', line 4 def readonly? (ENV['DB_READ_ONLY'] == "true") || false end |