Skip to content

Commit

Permalink
Column.new => PostgreSQLColumn.new closes #7
Browse files Browse the repository at this point in the history
Thanks to Davec
  • Loading branch information
nofxx committed Oct 10, 2009
1 parent 8bf0fc6 commit c0a48fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/postgis_adapter.rb
Expand Up @@ -238,12 +238,12 @@ def columns(table_name, name = nil) #:nodoc:
if type =~ /geometry/i
raw_geom_info = raw_geom_infos[name]
if raw_geom_info.nil?
ActiveRecord::ConnectionAdapters::SpatialPostgreSQLColumn.create_simplified(name,default,notnull == "f")
ActiveRecord::ConnectionAdapters::SpatialPostgreSQLColumn.create_simplified(name, default, notnull == "f")
else
ActiveRecord::ConnectionAdapters::SpatialPostgreSQLColumn.new(name, default,raw_geom_info.type, notnull == "f", raw_geom_info.srid, raw_geom_info.with_z, raw_geom_info.with_m)
end
else
ActiveRecord::ConnectionAdapters::Column.new(name, ActiveRecord::ConnectionAdapters::PostgreSQLColumn.extract_value_from_default( default), type,notnull == "f")
ActiveRecord::ConnectionAdapters::PostgreSQLColumn.new(name, ActiveRecord::ConnectionAdapters::PostgreSQLColumn.extract_value_from_default( default), type, notnull == "f")
end
end
end
Expand Down

0 comments on commit c0a48fb

Please sign in to comment.