<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -12,9 +12,10 @@ module ActiveRecord
           include OracleEnhancedTableDefinition
         end
         
+        # Available starting from ActiveRecord 2.1
         base::Table.class_eval do
           include OracleEnhancedTable
-        end
+        end if defined?(base::Table)
       end
     end
   </diff>
      <filename>lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -572,6 +572,7 @@ describe &quot;OracleEnhancedAdapter schema definition&quot; do
     end
 
     it &quot;should add foreign key in change_table&quot; do
+      return pending(&quot;Not in this ActiveRecord version&quot;) unless ENV['RAILS_GEM_VERSION'] &gt;= '2.1'
       schema_define do
         create_table :test_comments, :force =&gt; true do |t|
           t.string :body, :limit =&gt; 4000
@@ -587,6 +588,7 @@ describe &quot;OracleEnhancedAdapter schema definition&quot; do
     end
 
     it &quot;should add foreign key in change_table references&quot; do
+      return pending(&quot;Not in this ActiveRecord version&quot;) unless ENV['RAILS_GEM_VERSION'] &gt;= '2.1'
       schema_define do
         create_table :test_comments, :force =&gt; true do |t|
           t.string :body, :limit =&gt; 4000
@@ -601,6 +603,7 @@ describe &quot;OracleEnhancedAdapter schema definition&quot; do
     end
 
     it &quot;should remove foreign key by table name&quot; do
+      return pending(&quot;Not in this ActiveRecord version&quot;) unless ENV['RAILS_GEM_VERSION'] &gt;= '2.1'
       schema_define do
         create_table :test_comments, :force =&gt; true do |t|
           t.string :body, :limit =&gt; 4000</diff>
      <filename>spec/active_record/connection_adapters/oracle_enhanced_schema_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2a4fbd35497aee1e5686a4c551f4dc0869459721</id>
    </parent>
  </parents>
  <author>
    <name>Raimonds Simanovskis</name>
    <email>raimonds.simanovskis@gmail.com</email>
  </author>
  <url>http://github.com/rsim/oracle-enhanced/commit/a0d0ece4580d31f52978c986d179ccc7e71f2d62</url>
  <id>a0d0ece4580d31f52978c986d179ccc7e71f2d62</id>
  <committed-date>2009-10-30T06:30:32-07:00</committed-date>
  <authored-date>2009-10-30T06:24:49-07:00</authored-date>
  <message>do not add change_table behavior for ActiveRecord 2.0 (to avoid exception during loading)</message>
  <tree>36b58e0b26026aa85680d60ab078c3d7e5de7908</tree>
  <committer>
    <name>Raimonds Simanovskis</name>
    <email>raimonds.simanovskis@gmail.com</email>
  </committer>
</commit>
