lib/penthouse/tenants/migratable.rb in penthouse-0.13 vs lib/penthouse/tenants/migratable.rb in penthouse-0.13.1
- old
+ new
@@ -66,11 +66,13 @@
sanitize_sql(sql)
end
def sanitize_sql(sql)
sql
+ .gsub(/SELECT pg_catalog.set_config\(\'search_path.*;/, '')
.gsub(/SET search_path.*;/, '')
.gsub(/CREATE SCHEMA/, 'CREATE SCHEMA IF NOT EXISTS')
+ .gsub(/public\./, '')
end
end
end
end