Skip to content

Commit

Permalink
Merge pull request #106 from sickate/master
Browse files Browse the repository at this point in the history
add PostGIS adapter name detection
  • Loading branch information
aserafin authored Jul 1, 2016
2 parents 61361bf + 8def918 commit 9d393b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/seed-fu/seeder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def constraint_conditions(data)
end

def update_id_sequence
if @model_class.connection.adapter_name == "PostgreSQL"
if @model_class.connection.adapter_name == "PostgreSQL" or @model_class.connection.adapter_name == "PostGIS"
return if @model_class.primary_key.nil? || @model_class.sequence_name.nil?

quoted_id = @model_class.connection.quote_column_name(@model_class.primary_key)
Expand Down

0 comments on commit 9d393b2

Please sign in to comment.