I have recently cloned a project to my local Ubuntu box now that I am remote, and upon rake db migrate, I get the following error:
PG::UndefinedObject: ERROR: type "json" does not exist
A couple columns in my tables that are:
add_column :table, :column, :json
This migration works on the Macs at work, but are not working here. I have tried upgrading to PostgreSQL 9.3.4, but the issue still persists. I also tried sudo apt-get upgrade postgresql, and still the problem persists.
Ruby version is 2.1.0 Rails version is 4.0.3
jsondata type was introduced with Postgres 9.2. It should definitely work with v9.3.1. You did not disclose the actual version of the Postgres db cluster you are connecting to. What do you get forSELECT version()?