I declared a module MigrationProcedures
in app/concerns, which I would like to use to execute some unsupported ActiveRecord SQL statements.
Inside this module, I need to call the constant
[RAILS_ENV]['database']
but as it stands right now, rails tells me that there is an uninitialized constant RAILS_ENV
in the method.
I should not that this is being used under
def self.included(base)
...
end
I tried to use AppName::RAILS_ENV
but that tells me that MigrationProcedures::AppName
dosen't exist. How can I call this constant?