This project is archived and is in readonly mode.
Add column and index query methods to ActiveRecord::Schema
-
Andrew White
Updated patch.
I've had to rename the index_exists? method from #3452 [PATCH] Improve DB index handling as it clashed with this patch. The index_exists? from #3452 [PATCH] Improve DB index handling only supports checking by index name and is a support method whereas my index_exists? is more for using within migrations.
I did a quick survey of all of the AR adapters I could find and all of the ones for SQL databases define an indexes method. The only ones that didn't were for NoSQL databases or even more esoteric situations like a null/no-op database for testing.
-
Andrew White
- Milestone cleared.
- State changed from new to open
- Assigned user set to José Valim
New rebased patch: http://gist.github.com/raw/453112/0fa1e1f05faf888e0b31c0055fb3799d3...
-
Repository
- State changed from open to resolved
(from [11ff3da5f4fe71a8d93180ab9fa69c6190a2e26e]) Add column and index query methods to ActiveRecord::Schema
[#4219 Add column and index query methods to ActiveRecord::Schema state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/11ff3da5f4fe71a8d93180ab9fa69c...
