mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 04:37:30 +02:00
Convert pending_json field to jsonb so it can be compared without typecasting
This commit is contained in:
parent
b7dfc19b9f
commit
1d53e7bb5b
2 changed files with 12 additions and 1 deletions
|
@ -0,0 +1,9 @@
|
|||
class ChangeDomainPendingJsonToJsonb < ActiveRecord::Migration
|
||||
def up
|
||||
change_column :domains, :pending_json, 'jsonb USING CAST(pending_json AS jsonb)'
|
||||
end
|
||||
|
||||
def down
|
||||
change_column :domains, :pending_json, 'json USING CAST(pending_json AS json)'
|
||||
end
|
||||
end
|
|
@ -904,7 +904,7 @@ CREATE TABLE public.domains (
|
|||
delete_at timestamp without time zone,
|
||||
registrant_verification_asked_at timestamp without time zone,
|
||||
registrant_verification_token character varying,
|
||||
pending_json json,
|
||||
pending_json jsonb,
|
||||
force_delete_at timestamp without time zone,
|
||||
statuses character varying[],
|
||||
reserved boolean DEFAULT false,
|
||||
|
@ -4760,3 +4760,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180613045614');
|
|||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20180808064402');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20180824092855');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue