开发者

Sequel migration ran in heroku yields postgres type error

开发者 https://www.devze.com 2023-02-07 15:23 出处:网络
For some reason when I run my migrations in Heroku Sequel tries to create a row as string instead of varchar:

For some reason when I run my migrations in Heroku Sequel tries to create a row as string instead of varchar:

PGError: ERROR:  type "string" does not exist (Sequel::DatabaseError)
LINE 1: ...erial PRIMARY KEY, "开发者_Python百科facebook_id" integer, "email" string(50)

Anyone has a fix?


Ok changed my migration from:

string  :email,                   :null => false, :unique => true

to

String  :email,                   :null => false, :unique => true
0

精彩评论

暂无评论...
验证码 换一张
取 消