Module: RbacRls::Settings

Defined in:
lib/rbac_rls.rb

Class Method Summary collapse

Class Method Details

.application_db_userObject



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_nameObject



14
15
16
# File 'lib/rbac_rls.rb', line 14

def self.owner_column_name
  "owner_id"
end

.run_migrate_commandObject



6
7
8
# File 'lib/rbac_rls.rb', line 6

def self.run_migrate_command
  "rake db:migrate RAILS_ENV=migrations"
end