Permalink
Browse files

commenting ensuring prefix

  • Loading branch information...
1 parent 9fa236d commit 18cf3fd521f5fdde8324a7fb6fdd33213a9d9057 @dceballos committed May 9, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 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)

0 comments on commit 18cf3fd

Please sign in to comment.