<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -65,9 +65,13 @@ module VersionFu
       # Block extension
       versioned_class.class_eval &amp;block if block_given?
       
-      # Finally setup which columns to version
-      self.versioned_columns =  versioned_class.new.attributes.keys - 
-        [versioned_class.primary_key, versioned_foreign_key, version_column, 'created_at', 'updated_at']
+      if self.versioned_class.table_exists?
+        # Finally setup which columns to version
+        self.versioned_columns =  versioned_class.new.attributes.keys - 
+          [versioned_class.primary_key, versioned_foreign_key, version_column, 'created_at', 'updated_at']
+      else
+        ActiveRecord::Base.logger.warn &quot;Version Table not found&quot;
+      end
     end
     
     def versioned_class</diff>
      <filename>lib/version_fu.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>537f2ed7d9bfb1ed9626a6022a828fea143ba472</id>
    </parent>
  </parents>
  <author>
    <name>Dan Pickett</name>
    <email>dpickett@enlightsolutions.com</email>
  </author>
  <url>http://github.com/jmckible/version_fu/commit/6621b379f96591c3299d69ae60d720b3214a9f16</url>
  <id>6621b379f96591c3299d69ae60d720b3214a9f16</id>
  <committed-date>2009-06-29T21:43:18-07:00</committed-date>
  <authored-date>2009-06-29T21:43:18-07:00</authored-date>
  <message>handle for when the version table doesn't exist</message>
  <tree>693be6e9382ed099d12910106cd372c3ebc2cd8c</tree>
  <committer>
    <name>Dan Pickett</name>
    <email>dpickett@enlightsolutions.com</email>
  </committer>
</commit>
