Change AR::ConnectionAdapters::SchemaStatements#add_index to take kwargs

20 views
Skip to first unread message

Yuki Nishijima

unread,
Feb 22, 2015, 8:40:21 PM2/22/15
to rubyonra...@googlegroups.com
Hi,

I'm always confused by the existence of uniq and unique. Arrays and ActiveRecord::Relation objects respond to uniq while AR::ConnectionAdapters::SchemaStatements#add_index takes :unique option. I would like to get notified when :uniq option is actually wrong. If we change #add_index to take kwargs, it'll raise an error when :uniq option is given.

Does this make sense? Thanks for your time again!

Thanks,
Yuki

Yuki Nishijima

unread,
Feb 28, 2015, 9:55:56 PM2/28/15
to rubyonra...@googlegroups.com
Never mind, I guess the train I was on last week was way too old: https://github.com/rails/rails/commit/8fc52706c376be03f644e847d1dd357fc88ead6f
Reply all
Reply to author
Forward
0 new messages