public
Description: ActiveRecord plugin for versioning your models.
Clone URL: git://github.com/technoweenie/acts_as_versioned.git
fix bug so that create_versioned_table doesn't attempt to create duplicate 
tables
technoweenie (author)
Fri Oct 03 15:42:25 -0700 2008
commit  7bac6796b22760aa17ebf879e5466e796f1b5110
tree    c48eaddbe4d502644cb733025d794a5f86d9fbea
parent  d010b497bd548a6dd629ade03e0852d257ea0872
...
411
412
413
414
 
415
416
417
...
411
412
413
 
414
415
416
417
0
@@ -411,7 +411,7 @@ module ActiveRecord #:nodoc:
0
               self.reset_column_information
0
             end
0
 
0
- return if connection.tables.include?(versioned_table_name)
0
+ return if connection.tables.include?(versioned_table_name.to_s)
0
             
0
             self.connection.create_table(versioned_table_name, create_table_options) do |t|
0
               t.column versioned_foreign_key, :integer

Comments

    No one has commented yet.