Module: PgSaurus::Migration::SetRoleMethod
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/pg_saurus/migration/set_role_method.rb
Overview
Wrap original ‘exec_migration` to run migration with set postgresql role. If config.ensure_role_set=true but no role is set for the migration, then an exception is raised.
Defined Under Namespace
Modules: Extension
Instance Method Summary collapse
-
#keep_default_role? ⇒ Boolean
:nodoc:.
-
#role ⇒ Object
Get role.
Instance Method Details
#keep_default_role? ⇒ Boolean
:nodoc:
85 86 87 |
# File 'lib/pg_saurus/migration/set_role_method.rb', line 85 def keep_default_role? self.class.keep_default_role? end |
#role ⇒ Object
Get role
80 81 82 |
# File 'lib/pg_saurus/migration/set_role_method.rb', line 80 def role self.class.role end |