You are here: Browse Railsplugins Environment Check
= Environment Check
Environment Check is a plugin that checks to ensure the application environment RAILS_ENV matches the database environment. In the event that the application environment doesn’t match the database environment (say by accidentally running development against production) an exception is thrown along the lines of:
Incorrect database 'production'; expected 'development'
The plugin assumes you have a model class named SystemSetting which supports looking up values using standard enumeration-like indexing and that the record containing the value for the database environment is named environment.
=== Dependencies
=== License
This plugin is copyright 2006 by RedHill Consulting, Pty. Ltd. and is released under the MIT license.
NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly