I used rails 4 and postgresql 9.4 in my project. When I ran "rdd & rdc & rdm & rds" and I got this error PG :: UndefinedObject: ERROR: type "jsonb" does not exist , how to solve this error? tell me.
My migration file:
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
Thanks for the help!
postgresql ruby-on-rails-4 jsonb
Karthick
source share