Skip to content

Commit

Permalink
fix method name: not 'create_index' but 'add_index'
Browse files Browse the repository at this point in the history
Signed-off-by: rick <technoweenie@gmail.com>
  • Loading branch information
maiha authored and technoweenie committed Jan 5, 2009
1 parent c310d28 commit 23972a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/acts_as_versioned.rb
Expand Up @@ -440,7 +440,7 @@ def create_versioned_table(create_table_options = {})
self.connection.add_column versioned_table_name, :updated_at, :timestamp
end

self.connection.create_index versioned_table_name, versioned_foreign_key
self.connection.add_index versioned_table_name, versioned_foreign_key
end

# Rake migration task to drop the versioned table
Expand Down Expand Up @@ -489,4 +489,4 @@ def without_locking(&block)
end
end

ActiveRecord::Base.send :include, ActiveRecord::Acts::Versioned
ActiveRecord::Base.send :include, ActiveRecord::Acts::Versioned

0 comments on commit 23972a4

Please sign in to comment.