Re: Create lowercase index

Jordon Bedwell
2013-07-02T18:22:18Z

On Tue, Jul 2, 2013 at 12:13 PM, Linus Pettersson
<linus.pettersson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> execute "CREATE UNIQUE INDEX index_products_on_lower_name ON products
USING
> btree (lower(name));"
>
> But does Rails have support for creating it? Don''t like to use
execute() if
> there is a better way :)

Not that I''ve ever seen but that''s expected tbh.

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit