Skip to content

Commit 8f9f257

Browse files
committed
Remove sql header comments only in AR 5.0
This removal is performed by the parent method in AR >= 5.1
1 parent bb43cac commit 8f9f257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/active_record/tasks/chronomodel_database_tasks.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def structure_dump(*arguments)
2424
sql = File.read(filename).gsub(/CREATE SCHEMA (?!IF NOT EXISTS)/, '\&IF NOT EXISTS ')
2525
File.open(filename, 'w') { |file| file << sql }
2626

27-
remove_sql_header_comments(filename)
27+
remove_sql_header_comments(filename) if ActiveRecord::VERSION::STRING < '5.1'
2828
end
2929

3030
def data_dump(target)

0 commit comments

Comments
 (0)