Contact Number textfield form error in ROR
<p>I am trying to insert the data into database in <code>ROR</code>, for phone number i have taken field integer..But it is only taking 9 numeric digits..if i try to put 10 digits.It provides error as.</p>

<blockquote>
  <p>Mysql2::Error: Out of range value for column 'Telephone' at row 1:</p>
</blockquote>

<pre><code>INSERT INTO contacts (
    Email,
    Message,
    NAME,
    SUBJECT,
    Telephone,
    created_at,
    updated_at
)
VALUES
    (
        'ghfghf',
        'daaswwd ffdd',
        'ghfghf',
        'fggfhg',
         9234567899,
        '2016-07-27 05:47:43',
        '2016-07-27 05:47:43'
    )
</code></pre>

<p>But if I put numbers as <code>1234567890</code>..it is inserting data properly but not for any other number.. <code>9878675645</code></p>