about summary refs log tree commit diff
path: root/db/post_migrate
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-05-27 20:05:22 +0200
committerGitHub <noreply@github.com>2022-05-27 20:05:22 +0200
commite34dd3644c830895988a3116a7b6949fd81ed3fa (patch)
tree29b59d31e90a59345a6e8cc5ed530989aa7d27de /db/post_migrate
parentfbcbf7898f000d9d1a21d52e8a8d3ed4602aa7db (diff)
Remove unused `filtered_languages` column (#18533)
* Remove unused `filtered_languages` column

Fixes #18522

* Fix tests
Diffstat (limited to 'db/post_migrate')
-rw-r--r--db/post_migrate/20220527114923_remove_filtered_languages_from_users.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/post_migrate/20220527114923_remove_filtered_languages_from_users.rb b/db/post_migrate/20220527114923_remove_filtered_languages_from_users.rb
new file mode 100644
index 000000000..bd3664c72
--- /dev/null
+++ b/db/post_migrate/20220527114923_remove_filtered_languages_from_users.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class RemoveFilteredLanguagesFromUsers < ActiveRecord::Migration[6.1]
+  disable_ddl_transaction!
+
+  def change
+    safety_assured do
+      remove_column :users, :filtered_languages, :string, array: true, default: [], null: false
+    end
+  end
+end