Fix default values for jsonb columns
1 files changed, 3 insertions(+), 3 deletions(-)

M data/assemblage/migrations/20180314_initial.rb
M data/assemblage/migrations/20180314_initial.rb +3 -3
@@ 11,8 11,8 @@ Sequel.migration do
 			String :type, null: false
 			String :url, null: false, unique: true
 
-			jsonb :requirements, default: "{}"
-			jsonb :traits, default: "[]"
+			jsonb :requirements, default: Sequel.pg_jsonb({})
+			jsonb :traits, default: Sequel.pg_jsonb([])
 
 			Time :created_at, default: Sequel.function(:now)
 			Time :updated_at

          
@@ 39,7 39,7 @@ Sequel.migration do
 			primary_key :id
 
 			String :type, null: false
-			jsonb :data, default: "{}"
+			jsonb :data, default: Sequel.pg_jsonb([])
 
 			Time :created_at, default: Sequel.function(:now)
 			Time :updated_at