From 5658941cad19da60ea2ae33d796fe63e38dedbda Mon Sep 17 00:00:00 2001 From: Kazuya Takeshima Date: Wed, 17 Sep 2014 19:51:57 +0900 Subject: [PATCH] Add 'references' to candidates of migration field --- src/_rails | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_rails b/src/_rails index 618f5e3..4b66108 100644 --- a/src/_rails +++ b/src/_rails @@ -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