Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: technoweenie/acts_as_versioned
base: master
head fork: glenndavy/acts_as_versioned
compare: master
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 1 file changed
  • 2 commit comments
  • 1 contributor
Commits on Nov 15, 2008
Glenn Davy an attempt to fix create index bug on mysql e651119
Glenn Davy giving add_index a chance to work when needed without loosing creat_…
…index for when its needed
Commits on Nov 24, 2008
Glenn Davy fixed indentation 6510e3f
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/acts_as_versioned.rb
7 lib/acts_as_versioned.rb
@@ -439,7 +439,10 @@ def create_versioned_table(create_table_options = {})
if updated_col.nil?
self.connection.add_column versioned_table_name, :updated_at, :timestamp
+ unless self.connect.repond_to?(:create_index)
+ alias_method "add_index", "create_index"
+ end
self.connection.create_index versioned_table_name, versioned_foreign_key
@@ -489,4 +492,4 @@ def without_locking(&block)
-ActiveRecord::Base.send :include, ActiveRecord::Acts::Versioned
+ActiveRecord::Base.send :include, ActiveRecord::Acts::Versioned

Showing you all comments on commits in this comparison.


hi there. repond_to? (line 443) should probably be respond_to. Just thought you might like the heads up.


Uh that is respond_to?. With the ?.

Something went wrong with that request. Please try again.