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 Jun 19, 2019
1 parent 6529669 commit 2b1d9ac
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 @@ -1428,7 +1428,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
);

Expand Down Expand Up @@ -4739,6 +4739,8 @@ INSERT INTO schema_migrations (version) VALUES ('20190328151516');

INSERT INTO schema_migrations (version) VALUES ('20190328151838');

INSERT INTO schema_migrations (version) VALUES ('20190404140234');

INSERT INTO schema_migrations (version) VALUES ('20190415120246');

INSERT INTO schema_migrations (version) VALUES ('20190426174225');
Expand Down

0 comments on commit 2b1d9ac

Please sign in to comment.