Skip to content

Conversation

slothbear
Copy link
Contributor

The PostgreSQL 'string' on Heroku only allows 255 characters. Use 'text' instead to allow longer URLs.

The PostgreSQL string on Heroku only allows 255 characters. Use 'text' instead to allow longer URLs.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) when pulling bf5741e on slothbear:patch-1 into 9b772e7 on swanson:master.

swanson pushed a commit that referenced this pull request May 4, 2013
@swanson swanson merged commit 0cc1272 into stringer-rss:master May 4, 2013
@swanson
Copy link
Collaborator

swanson commented May 4, 2013

Thanks!

@slothbear
Copy link
Contributor Author

I didn't see any other tests that hit the database or I would have added one for this. If you have any guidance, I'd be happy to add one.

@swanson
Copy link
Collaborator

swanson commented May 4, 2013

@slothbear you are correct - don't have anything hitting the DB yet. You're all good 👍

@slothbear slothbear deleted the patch-1 branch May 4, 2013 02:39
@slothbear
Copy link
Contributor Author

(to make this issue more findable in case someone else runs into the problem)
Here's the error you get when you try to stuff a long url into a PostgreSQL string:

May 03 16:07:34 stringermatic app/web.1:  D, [2013-05-03T23:07:34.317470 #12] DEBUG -- : 
PG::Error: ERROR:  value too long for type character varying(255) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants