mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +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
|
Loading…
Add table
Add a link
Reference in a new issue