Module: RbacRls::Settings
- Defined in:
- lib/rbac_rls.rb
Class Method Summary collapse
- .application_db_user ⇒ Object
- .down_migrate_command(version = nil) ⇒ Object
- .owner_column_name ⇒ Object
- .run_migrate_command ⇒ Object
Class Method Details
.application_db_user ⇒ Object
18 19 20 |
# File 'lib/rbac_rls.rb', line 18 def self.application_db_user "app_user" end |
.down_migrate_command(version = nil) ⇒ Object
10 11 12 |
# File 'lib/rbac_rls.rb', line 10 def self.down_migrate_command(version = nil) "rake db:migrate:down VERSION=#{version} RAILS_ENV=migrations" end |
.owner_column_name ⇒ Object
14 15 16 |
# File 'lib/rbac_rls.rb', line 14 def self.owner_column_name "owner_id" end |
.run_migrate_command ⇒ Object
6 7 8 |
# File 'lib/rbac_rls.rb', line 6 def self.run_migrate_command "rake db:migrate RAILS_ENV=migrations" end |