1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

fix a broken test

The commit 2f632f5391 extracted the
options into constants and while doing so, there was a minor error of
using a wrong constant name.
This commit is contained in:
Vijay Dev 2012-01-15 18:19:31 +05:30
parent b435ea9570
commit 85629c83af

View file

@ -18,7 +18,7 @@ module Rails
# if user provided "name:index" instead of "name:string:index"
# type should be set blank so GeneratedAttribute's constructor
# could set it to :string
has_index, type = type, nil if UNIQ_INDEX_OPTIONS.include?(type)
has_index, type = type, nil if INDEX_OPTIONS.include?(type)
type, attr_options = *parse_type_and_options(type)
new(name, type, has_index, attr_options)