我在我的项目中使用了Rails 4和PostgreSQL 9.4。当我运行"rdd && rdc && rdm && rds"时,出现了错误PG::UndefinedObject: ERROR: type "jsonb" does not exist。
怎样才能解决这个错误?请告诉我。
我的迁移文件:
class CreateConsultingLocationDoctorSchedules < ActiveRecord::Migration
def change
create_table :consulting_location_doctor_schedules do |t|
t.belongs_to :consulting_location_doctor
t.datetime :schedule_date, null: false
t.jsonb :slot_details, index: true, default: {}
t.daterange :start_and_end_time, null: false
t.datetime :deleted_at
t.belongs_to :deleted_by
t.timestamps
end
end
end
感谢您的帮助!