I'm using [Node.js](http://nodejs.org) + [PostgreSQL](http://www.postgresql.org/) + [Sequelize.js 2.0.2](http://sequelizejs.com/). I have the following schema definition for the phone field which could be array of strings, but only number is allowed:

```
var User = sequelize.define("User", {
    ....
    ....
    /** Phone number
     * Multiple numbers should be registered due to
     */
    phone: {
        type: Sequelize.ARRAY(Sequelize.STRING),
        allowNull: false,
        unique: true,
        validate: {
            isNumeric: true
        }
    },
    ....
    ....
});

```

The array of numeric phone numbers is not passed for validation.

**Input**: `[ '9252522525', '9252525555' ]` 

**Error**:

```
{ [SequelizeValidationError: Validation error]
  name: 'SequelizeValidationError',
  message: 'Validation error',
  errors: 
   [ { message: 'Validation isNumeric failed',
       type: 'Validation error',
       path: 'phone',
       value: 'Validation isNumeric failed',
       __raw: 'Validation isNumeric failed' } ] }

```

However, the single-value array input `[ '9252522525' ]` is successful. Is it Sequelize's bug or what am I wrong?

[Edit]
------

I changed the validator to `is`, but no success.

```
validate: {
    is: ["^[0-9]+$", "i"]
}

```

I got the following error.

```
{ [SequelizeValidationError: Validation error]
  name: 'SequelizeValidationError',
  message: 'Validation error',
  errors: 
   [ { message: 'Validation is failed',
       type: 'Validation error',
       path: 'phone',
       value: 'Validation is failed',
       __raw: 'Validation is failed' } ] }

```