79160867

Date: 2024-11-05 22:35:24
Score: 0.5
Natty:
Report link

https://github.com/soundcloud/lhm/pull/84

Looks like this has changed since the approved answer was suggested. Now you should not specify name: or index_name:, just pass it as the second argument:

m.add_unique_index [:bar_id, :baz], "shortened_index_name"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dan Rice