I searched on Google and StackOverflow to find a answer to my question but I can\'t find one.
I\'d like to store the access_token to my database for offline access a
Facebook access token can be longer than 255 characters. I had a lot of errors like ActiveRecord::StatementInvalid: PG::StringDataRightTruncation: ERROR: value too long for type character varying(255) where the value was facebook access token. Do not use string type column because its length is limited. You can use text type column to store tokens.