From 4c151cece49357212cf4e9ef6f76e3f38fdccf7e Mon Sep 17 00:00:00 2001 From: Albert Yi Date: Wed, 28 Nov 2018 13:35:54 -0800 Subject: [PATCH] update migration --- .../20181114202744_change_other_names_to_array_on_artists.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/db/migrate/20181114202744_change_other_names_to_array_on_artists.rb b/db/migrate/20181114202744_change_other_names_to_array_on_artists.rb index 93e4ac5ff..c01d6ea17 100644 --- a/db/migrate/20181114202744_change_other_names_to_array_on_artists.rb +++ b/db/migrate/20181114202744_change_other_names_to_array_on_artists.rb @@ -1,6 +1,7 @@ class ChangeOtherNamesToArrayOnArtists < ActiveRecord::Migration[5.2] def up Artist.without_timeout do + change_column :artists, :other_names, :text, null: false, default: "" change_column_default :artists, :other_names, from: '', to: false remove_index :artists, name: "index_artists_on_other_names_trgm" change_column :artists, :other_names, "text[]", using: "array_remove(regexp_split_to_array(other_names, '\\s+'), '')", default: "{}"