Merge pull request #261 from mitukiii/rails

Add 'references' to candidates of migration field
This commit is contained in:
Hideo Hattori
2014-09-22 11:41:47 +09:00
+1 -1
View File
@@ -136,7 +136,7 @@ __rails_migration_fields() {
_values 'index' 'index' 'uniq'
else
if compset -P '*:'; then
_values -s ':' 'type' 'string' 'text' 'integer' 'float' 'decimal' 'datetime' 'timestamp' 'time' 'date' 'binary' 'boolean'
_values -s ':' 'type' 'string' 'text' 'integer' 'float' 'decimal' 'datetime' 'timestamp' 'time' 'date' 'binary' 'boolean' 'references'
else
_guard '[[:alnum:]_]#' 'field'
fi