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 4, 2019
1 parent 9e8371c commit f7fa2d2
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 @@ -1544,7 +1544,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 @@ -4939,3 +4939,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 f7fa2d2

Please sign in to comment.