Re: [Rails] Re: validation on phone number

2016-03-26 Thread tamouse pontiki
On Sat, Mar 26, 2016 at 4:35 AM, Colin Law wrote: > On 26 March 2016 at 09:25, Naveed Alam wrote: > > Ramu Goud wrote in post #1182441: > >> Hi, > >> i have column name phone with integer datatype but when i enter phone > >> number it throws an error >

Re: [Rails] Re: validation on phone number

2016-03-26 Thread Colin Law
On 26 March 2016 at 09:25, Naveed Alam wrote: > Ramu Goud wrote in post #1182441: >> Hi, >> i have column name phone with integer datatype but when i enter phone >> number it throws an error >> "1325565488 is out of range for ActiveRecord::Type::Integer with limit >> 4" > >

[Rails] Re: validation on phone number

2016-03-26 Thread Naveed Alam
Ramu Goud wrote in post #1182441: > Hi, > i have column name phone with integer datatype but when i enter phone > number it throws an error > "1325565488 is out of range for ActiveRecord::Type::Integer with limit > 4" goto your db folder and in the migration change the phone number field data

Re: [Rails] Re: validation on phone number

2016-03-24 Thread Robby O'Connor
Use a string data type for the number. --Rob Sent from my cell, please excuse any typos. On Mar 24, 2016 5:55 PM, "Ramu Goud" wrote: > Use string where i'm just a beginner so can u tell me that in detail > > -- > Posted via http://www.ruby-forum.com/. > > -- > You

Re: [Rails] Re: validation on phone number

2016-03-24 Thread Colin Law
On 24 March 2016 at 21:54, Ramu Goud wrote: > Use string where i'm just a beginner so can u tell me that in detail As the datatype for the column in the database. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:

[Rails] Re: validation on phone number

2016-03-24 Thread Ramu Goud
Use string where i'm just a beginner so can u tell me that in detail -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send