Więc mam comments
stół, który jest zorganizowany tak:PostgreSQL strunowe (255) graniczne - Rails, Ruby i Heroku
# == Schema Information
#
# Table name: comments
#
# id :integer not null, primary key
# body :string(255)
# notified :boolean
# user_id :integer
# stage_id :integer
# created_at :datetime
# updated_at :datetime
# client_id :integer
# author :string(255)
To jest komunikat o błędzie otrzymuję:
ActiveRecord::StatementInvalid (PGError: ERROR: value too long for type character varying(255)
Jak przechowywać długi tekst w kolumnie PG za pomocą Rails 3.x i Heroku?
Jak wyglądałaby migracja, aby rozwiązać ten problem?
Dzięki.
Szukasz czegoś więcej niż: http://stackoverflow.com/questions/4103141/storing-more-than-255-characters-in-a-postgresql-db-on-heroku? –
Nie ... właśnie tego szukałem. Dzięki! – marcamillion