Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

commenting ensuring prefix

  • Loading branch information...
commit 18cf3fd521f5fdde8324a7fb6fdd33213a9d9057 1 parent 9fa236d
@cactusapp cactusapp authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/roomer/helpers/postgres_helper.rb
View
6 lib/roomer/helpers/postgres_helper.rb
@@ -86,10 +86,10 @@ def stored_procedures(schema_name)
# Person.find(1) # => will execute "SELECT id FROM 'global.person' where 'id' = 1"
# end
def ensure_prefix(prefix, &block)
- old_prefix = ActiveRecord::Base.table_name_prefix
- ActiveRecord::Base.table_name_prefix = "#{prefix.to_s}#{Roomer.schema_seperator.to_s}"
+ #old_prefix = ActiveRecord::Base.table_name_prefix
+ #ActiveRecord::Base.table_name_prefix = "#{prefix.to_s}#{Roomer.schema_seperator.to_s}"
yield
- ActiveRecord::Base.table_name_prefix = old_prefix
+ #ActiveRecord::Base.table_name_prefix = old_prefix
end
# Ensures the schema and schema_migrations exist(creates them otherwise)
Please sign in to comment.
Something went wrong with that request. Please try again.