Permalink
Browse files

adding monkey patching on README

  • Loading branch information...
1 parent 5ad08a1 commit 053011c55c7ff0536873a9c56dadd33f52e5deba @kyohsuke committed Oct 10, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 README.md
View
14 README.md
@@ -15,6 +15,20 @@ kick it on rails console
User.indexes
```
+## Monkey Patching if you don't need to bundle
+touch config/initializers/arb_indexes.rb and put it.
+
+```ruby
+module ActiveRecord
+ class Base
+ class << self
+ def indexes
+ connection.indexes(table_name)
+ end
+ end
+ end
+end
+```
## See Also
http://stackoverflow.com/questions/1683948/activerecord-finding-existing-table-indexes

0 comments on commit 053011c

Please sign in to comment.