From 8def918a0f9cb500839c7e0e4885d9aa23268936 Mon Sep 17 00:00:00 2001 From: sickcate Date: Mon, 18 Apr 2016 16:34:25 +0800 Subject: [PATCH] add PostGIS adapter name detect --- lib/seed-fu/seeder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/seed-fu/seeder.rb b/lib/seed-fu/seeder.rb index 2abfc54..37a3ea8 100644 --- a/lib/seed-fu/seeder.rb +++ b/lib/seed-fu/seeder.rb @@ -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)