Browse Source

Limit line length of conditional index creator.

Makes it more readable too
develop
Bèr Kessels 3 months ago
parent
commit
ba393bbee2
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      app/projections/addresses.rb

+ 3
- 1
app/projections/addresses.rb View File

@@ -37,7 +37,9 @@ module Hours
def index_gist
col = :location
name = "#{ADDRESS_TABLE_NAME}_#{col}"
"CREATE INDEX IF NOT EXISTS #{name} ON #{ADDRESS_TABLE_NAME} USING GIST(#{col})"
"CREATE INDEX IF NOT EXISTS #{name}
ON #{ADDRESS_TABLE_NAME}
USING GIST(#{col})"
end

# Directly imported with Postgres COPY CMD for now. So no projection

Loading…
Cancel
Save