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
1 changed files with 1 additions and 1 deletions

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)