Module: SwitchmanInstJobs::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
- Defined in:
- lib/switchman_inst_jobs/active_record/connection_adapters/postgresql_adapter.rb
Instance Method Summary collapse
Instance Method Details
#set_search_path(function, args = "()", path = ::Switchman::Shard.current.name) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/switchman_inst_jobs/active_record/connection_adapters/postgresql_adapter.rb', line 7 def set_search_path(function, args = "()", path = ::Switchman::Shard.current.name) execute " ALTER FUNCTION \#{quote_table_name(function)}\#{args}\n SET search_path TO \#{path}\n SQL\nend\n" |