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:
parent
b435ea9570
commit
85629c83af
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue