mikelarkin / contestapp

Source code for Shopify Application Development book
https://www.packtpub.com/web-development/shopify-application-development
MIT License
12 stars 19 forks source link

6358088515 is out of range for ActiveRecord::Type::Integer with limit 4 #4

Open poidog44 opened 8 years ago

poidog44 commented 8 years ago

I'm getting stuck on trying to import the products on the last step prior to the commit. I keep having this error.

screen shot 2016-07-27 at 5 57 43 pm

When I clone from ch03 I can get it to work but when I follow along in the book I keep getting this error. Any advice on how to fix it?

poidog44 commented 8 years ago

I've uploaded the code to where I've been stuck in the branch ch03_04_product_import

mikelarkin commented 8 years ago

Sorry for the confusion, shopify recently expanded their id fields to be big ints, so you'll need to create a migration:

change_column

, , :bigint

On Thu, Jul 28, 2016 at 12:05 AM poidog44 notifications@github.com wrote:

I've uploaded the code to where I've been stuck in the branch ch03_04_product_import

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mikelarkin/contestapp/issues/4#issuecomment-235795436, or mute the thread https://github.com/notifications/unsubscribe-auth/AABICTHZ6o40LE49w3YlNalsPoO9wJFBks5qaCpzgaJpZM4JW2KX .

Thanks,

Mike

Fasihi commented 7 years ago

You need to increase the size of your integer column like @mikelarkin mentioned. Here: http://stackoverflow.com/questions/29538530/number-is-out-of-range-for-activerecordtypeinteger-with-limit-4