[Rails] Adding table index through rails
Hello,
could someone please tell me how I can add a Mysql table index through
my rails app. without using a migration, ie from within my app ?
ie how I can call the add_index() method here >
ActiveRecord::ConnectionAdapters::SchemaStatements.add_index().
I don't quite understand what I need to include or require for the
add_index method to become available for me to use.
thanks in advance,
Hal
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home