Skip to content

Commit

Permalink
Change log_domains.children database column's type to jsonb
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Beljajev committed Apr 11, 2019
1 parent a66b685 commit ebd7a32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class ChangeLogDomainsChildrenTypeToJsonb < ActiveRecord::Migration
def change
change_column :log_domains, :children, 'jsonb USING children::jsonb'
end
end
4 changes: 3 additions & 1 deletion db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand Down Expand Up @@ -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');

0 comments on commit ebd7a32

Please sign in to comment.