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 0000000000..b511d7293e --- /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 08ed08c47b..389a9a374a 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -1543,7 +1543,7 @@ CREATE TABLE public.log_domains ( tech_contact_ids text[] DEFAULT '{}'::text[], admin_contact_ids text[] DEFAULT '{}'::text[], session character varying, - children json, + children jsonb, uuid character varying ); @@ -4940,3 +4940,5 @@ INSERT INTO schema_migrations (version) VALUES ('20190322152123'); INSERT INTO schema_migrations (version) VALUES ('20190322152529'); +INSERT INTO schema_migrations (version) VALUES ('20190404140234'); +