Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

fix a broken test

The commit 2f632f5 extracted the
options into constants and while doing so, there was a minor error of
using a wrong constant name.
  • Loading branch information...
1 parent b435ea9 commit 85629c83af7d0d67d483174d836dc6daf1196e7b @vijaydev vijaydev committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/generators/generated_attribute.rb
2  railties/lib/rails/generators/generated_attribute.rb
@@ -18,7 +18,7 @@ def parse(column_definition)
# 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)

0 comments on commit 85629c8

Please sign in to comment.
Something went wrong with that request. Please try again.