Created
February 22, 2009 20:56
-
-
Save ryanking/68614 to your computer and use it in GitHub Desktop.
These fields almost always need an index in rails.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select table_name, column_name, column_key from columns where table_schema='YOURDB' and column_name like '%id' and column_key=''; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment