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:
39 40 41 |
# File 'lib/pg_saurus/migration/set_role_method.rb', line 39 def keep_default_role? self.class.keep_default_role? end |
#role ⇒ Object
Get role
34 35 36 |
# File 'lib/pg_saurus/migration/set_role_method.rb', line 34 def role self.class.role end |