Skip to content

Commit

Permalink
fix bug so that create_versioned_table doesn't attempt to create dupl…
Browse files Browse the repository at this point in the history
…icate tables
  • Loading branch information
technoweenie committed Oct 3, 2008
1 parent d010b49 commit 7bac679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_versioned.rb
Expand Up @@ -411,7 +411,7 @@ def create_versioned_table(create_table_options = {})
self.reset_column_information
end

return if connection.tables.include?(versioned_table_name)
return if connection.tables.include?(versioned_table_name.to_s)

self.connection.create_table(versioned_table_name, create_table_options) do |t|
t.column versioned_foreign_key, :integer
Expand Down

0 comments on commit 7bac679

Please sign in to comment.