Permalink
Browse files

Removed const patch

  • Loading branch information...
1 parent 3324f27 commit cee507c9911b82c6f119a2894b23c6ec2a9c0c71 @pyromaniac pyromaniac committed Nov 8, 2012
Showing with 0 additions and 7 deletions.
  1. +0 −7 lib/activeuuid/patches.rb
@@ -106,12 +106,6 @@ def native_database_types_with_pguuid
end
end
- def self.update_native_database_types
- if defined? ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::NATIVE_DATABASE_TYPES
- ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::NATIVE_DATABASE_TYPES[:uuid] = { :name => 'binary', :limit => 16 }
- end
- end
-
def self.apply!
ActiveRecord::ConnectionAdapters::Table.send :include, Migrations if defined? ActiveRecord::ConnectionAdapters::Table
ActiveRecord::ConnectionAdapters::TableDefinition.send :include, Migrations if defined? ActiveRecord::ConnectionAdapters::TableDefinition
@@ -122,7 +116,6 @@ def self.apply!
ActiveRecord::ConnectionAdapters::Mysql2Adapter.send :include, Quoting if defined? ActiveRecord::ConnectionAdapters::Mysql2Adapter
ActiveRecord::ConnectionAdapters::SQLite3Adapter.send :include, Quoting if defined? ActiveRecord::ConnectionAdapters::SQLite3Adapter
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.send :include, PostgreSQLQuoting if defined? ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
- self.update_native_database_types
end
end
end

0 comments on commit cee507c

Please sign in to comment.