<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,14 +1,19 @@
 module ActiveRecord
   module ConnectionAdapters # :nodoc:
     module SchemaStatements
-      def create_versioned_table(table_name, options={}, &amp;block)
+
+      # Pass in &quot;:versioned =&gt; false&quot; in the options hash to create a non-versioned table.
+      def create_content_table(table_name, options={}, &amp;block)
 
         #Do the primary table
         t = TableDefinition.new(self)
         t.primary_key(options[:primary_key] || Base.get_primary_key(table_name)) unless options[:id] == false
 
-        t.integer :version
-        t.integer :lock_version, :default =&gt; 0
+        unless options[:versioned] == false
+          t.integer :version
+          t.integer :lock_version, :default =&gt; 0
+        end
+
         yield t
 
         # Blocks currently must have a name column, otherwise the UI fails in several places.
@@ -21,35 +26,36 @@ module ActiveRecord
         t.integer :created_by_id
         t.integer :updated_by_id
         t.timestamps
-
         
         create_table_from_definition(table_name, options, t)
 
-        #Do the versions table
-        vt = TableDefinition.new(self)
-        vt.primary_key(options[:primary_key] || Base.get_primary_key(table_name)) unless options[:id] == false
+        unless options[:versioned] == false
+          #Do the versions table
+          vt = TableDefinition.new(self)
+          vt.primary_key(options[:primary_key] || Base.get_primary_key(table_name)) unless options[:id] == false
 
-        vt.integer &quot;#{table_name.to_s.singularize}_id&quot;.to_sym
-        vt.integer :version
-        yield vt
+          vt.integer &quot;#{table_name.to_s.singularize}_id&quot;.to_sym
+          vt.integer :version
+          yield vt
 
-        # Create implicit name column in version table as well.
-        vt.string :name unless vt[:name]
+          # Create implicit name column in version table as well.
+          vt.string :name unless vt[:name]
 
-        vt.boolean :published, :default =&gt; false
-        vt.boolean :deleted, :default =&gt; false
-        vt.boolean :archived, :default =&gt; false        
-        vt.string :version_comment
-        vt.integer :created_by_id
-        vt.integer :updated_by_id
-        vt.timestamps            
-        
+          vt.boolean :published, :default =&gt; false
+          vt.boolean :deleted, :default =&gt; false
+          vt.boolean :archived, :default =&gt; false        
+          vt.string :version_comment
+          vt.integer :created_by_id
+          vt.integer :updated_by_id
+          vt.timestamps
 
-        
-        create_table_from_definition(&quot;#{table_name.to_s.singularize}_versions&quot;.to_sym, options, vt)
+          create_table_from_definition(&quot;#{table_name.to_s.singularize}_versions&quot;.to_sym, options, vt)
+        end
         
       end   
          
+      alias :create_versioned_table :create_content_table
+
       def create_table_from_definition(table_name, options, table_definition)
         if options[:force] &amp;&amp; table_exists?(table_name)
          drop_table(table_name, options)
@@ -69,4 +75,4 @@ module ActiveRecord
       
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/cms/extensions/active_record/connection_adapters/abstract/schema_statements.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 class &lt;%= migration_name %&gt; &lt; ActiveRecord::Migration
   def self.up
-    create_versioned_table :&lt;%= table_name %&gt; do |t|
+    create_content_table :&lt;%= table_name %&gt; do |t|
 &lt;% for attribute in attributes -%&gt;
       &lt;%= 
         case attribute.type
@@ -31,6 +31,7 @@ class &lt;%= migration_name %&gt; &lt; ActiveRecord::Migration
   def self.down
     ContentType.delete_all(['name = ?', '&lt;%= class_name %&gt;'])
     CategoryType.all(:conditions =&gt; ['name = ?', '&lt;%= class_name.titleize %&gt;']).each(&amp;:destroy)
+    #If you aren't creating a versioned table, be sure to comment this out.
     drop_table :&lt;%= table_name.singularize %&gt;_versions
     drop_table :&lt;%= table_name %&gt;
   end</diff>
      <filename>rails_generators/content_block/templates/migration.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3bdd2145900ef5f2405e0e80a62335966e20a508</id>
    </parent>
  </parents>
  <author>
    <name>Daniel Collis-Puro</name>
    <email>dan@collispuro.net</email>
  </author>
  <url>http://github.com/browsermedia/browsercms/commit/abf900165f6ddf64bc9a75f4a3da1b052345bce0</url>
  <id>abf900165f6ddf64bc9a75f4a3da1b052345bce0</id>
  <committed-date>2009-07-30T13:39:50-07:00</committed-date>
  <authored-date>2009-07-30T13:39:50-07:00</authored-date>
  <message>Rename the &quot;create_versioned_table&quot; method to &quot;create_content_table&quot;, aliasing the old method. Accept a &quot;versioned&quot; option and allow for the creation of non-versioned content_blocks, with the default behavior retained.</message>
  <tree>317b7abb04a7fb2248ad459d7df2daad4b53cb73</tree>
  <committer>
    <name>Daniel Collis-Puro</name>
    <email>dan@collispuro.net</email>
  </committer>
</commit>
