diff options
| author | maiha <maiha@wota.jp> | 2008-11-05 19:26:40 +0800 |
|---|---|---|
| committer | rick <technoweenie@gmail.com> | 2009-01-05 11:13:55 +0800 |
| commit | 23972a47b9249d2cd30e1a452f99414a0139c0a2 (patch) | |
| tree | ac4b8827d2c95e576f025a081923fca758beb83f | |
| parent | c310d2805ed243fd7587afcc5cec1bbbb9198947 (diff) | |
fix method name: not 'create_index' but 'add_index'
Signed-off-by: rick <technoweenie@gmail.com>
| -rw-r--r-- | lib/acts_as_versioned.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/acts_as_versioned.rb b/lib/acts_as_versioned.rb index 2e7a40d9b..9660f2ad6 100644 --- a/lib/acts_as_versioned.rb +++ b/lib/acts_as_versioned.rb @@ -440,7 +440,7 @@ module ActiveRecord #:nodoc: 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 @@ -489,4 +489,4 @@ module ActiveRecord #:nodoc: end end -ActiveRecord::Base.send :include, ActiveRecord::Acts::Versioned
\ No newline at end of file +ActiveRecord::Base.send :include, ActiveRecord::Acts::Versioned |
