Skip to content

Commit

Permalink
Use <<~ for more predictable indenting
Browse files Browse the repository at this point in the history
This wasn't used in the past for Ruby 1.9 or 2.0 support, but we can now
rely on this. It makes testing easier.
  • Loading branch information
ekohl committed Oct 21, 2024
1 parent 31ac520 commit 5e89e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/foreman_maintain/concerns/base_database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def dropdb
if local?
execute!("runuser - postgres -c 'dropdb #{configuration['database']}'")
else
delete_statement = psql(<<-SQL)
delete_statement = psql(<<~SQL)
select string_agg('drop table if exists \"' || tablename || '\" cascade;', '')
from pg_tables
where schemaname = 'public';
Expand Down

0 comments on commit 5e89e8c

Please sign in to comment.