diff --git a/db/migrate/20190404140234_change_log_domains_children_type_to_jsonb.rb b/db/migrate/20190404140234_change_log_domains_children_type_to_jsonb.rb new file mode 100644 index 000000000..b511d7293 --- /dev/null +++ b/db/migrate/20190404140234_change_log_domains_children_type_to_jsonb.rb @@ -0,0 +1,5 @@ +class ChangeLogDomainsChildrenTypeToJsonb < ActiveRecord::Migration + def change + change_column :log_domains, :children, 'jsonb USING children::jsonb' + end +end \ No newline at end of file diff --git a/db/structure.sql b/db/structure.sql index 0ce89f0d2..d0c941cb5 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -1493,7 +1493,7 @@ CREATE TABLE public.log_domains ( object_changes json, created_at timestamp without time zone, session character varying, - children json, + children jsonb, uuid character varying ); @@ -4849,5 +4849,3 @@ INSERT INTO "schema_migrations" (version) VALUES ('20200811074839'), ('20200812090409'), ('20200812125810'); - -