【问题标题】:Sequel migration ran in heroku yields postgres type error在heroku中运行的续集迁移产生postgres类型错误
【发布时间】:2011-01-31 23:30:23
【问题描述】:

由于某种原因,当我在 Heroku Sequel 中运行迁移时,我尝试将行创建为 string 而不是 varchar

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

有人解决了吗?

【问题讨论】:

    标签: ruby postgresql heroku sequel


    【解决方案1】:

    好的,我的迁移从:

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

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

    【讨论】:

      猜你喜欢
      • 2014-05-03
      • 2011-02-25
      • 2019-05-04
      • 1970-01-01
      • 2021-09-25
      • 2012-06-16
      • 2012-12-09
      • 2020-08-17
      • 1970-01-01
      相关资源
      最近更新 更多