From 28f32abe247a330e56ff6c10c78052b4c718ae51 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 10 Dec 2018 19:38:56 -0600 Subject: [PATCH] Fix migrations. --- ...0205_change_descendant_names_to_array_on_tag_implications.rb | 2 +- ...0181114185032_change_strings_to_arrays_on_artist_versions.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20181114180205_change_descendant_names_to_array_on_tag_implications.rb b/db/migrate/20181114180205_change_descendant_names_to_array_on_tag_implications.rb index f7763cdeb..a6016f065 100644 --- a/db/migrate/20181114180205_change_descendant_names_to_array_on_tag_implications.rb +++ b/db/migrate/20181114180205_change_descendant_names_to_array_on_tag_implications.rb @@ -1,7 +1,7 @@ class ChangeDescendantNamesToArrayOnTagImplications < ActiveRecord::Migration[5.2] def up TagImplication.without_timeout do - change_column_default :tag_implications, :descendant_names, from: '', to: false + change_column_default :tag_implications, :descendant_names, from: '', to: nil change_column :tag_implications, :descendant_names, "text[]", using: "string_to_array(descendant_names, ' ')::text[]", default: "{}" end end diff --git a/db/migrate/20181114185032_change_strings_to_arrays_on_artist_versions.rb b/db/migrate/20181114185032_change_strings_to_arrays_on_artist_versions.rb index a9ba74f62..2eebd2779 100644 --- a/db/migrate/20181114185032_change_strings_to_arrays_on_artist_versions.rb +++ b/db/migrate/20181114185032_change_strings_to_arrays_on_artist_versions.rb @@ -1,7 +1,7 @@ class ChangeStringsToArraysOnArtistVersions < ActiveRecord::Migration[5.2] def up ArtistVersion.without_timeout do - change_column_default :artist_versions, :other_names, from: '', to: false + change_column_default :artist_versions, :other_names, from: '', to: nil change_column :artist_versions, :other_names, "text[]", using: "array_remove(regexp_split_to_array(other_names, '\\s+'), '')", default: "{}" change_column :artist_versions, :url_string, "text[]", using: "array_remove(regexp_split_to_array(url_string, '\\s+'), '')", default: "{}"