lib/torque/postgresql/adapter/schema_definitions.rb in torque-postgresql-0.1.1 vs lib/torque/postgresql/adapter/schema_definitions.rb in torque-postgresql-0.1.2

- old
+ new

@@ -14,15 +14,18 @@ end end end - module ColumnDefinition - attr_accessor :subtype - end - ActiveRecord::ConnectionAdapters::PostgreSQL::Table.include ColumnMethods ActiveRecord::ConnectionAdapters::PostgreSQL::TableDefinition.include ColumnMethods - ActiveRecord::ConnectionAdapters::PostgreSQL::ColumnDefinition.include ColumnDefinition + + if ActiveRecord::ConnectionAdapters::PostgreSQL.const_defined?('ColumnDefinition') + module ColumnDefinition + attr_accessor :subtype + end + + ActiveRecord::ConnectionAdapters::PostgreSQL::ColumnDefinition.include ColumnDefinition + end end end end