about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-06-22 00:10:43 +0200
committerGitHub <noreply@github.com>2018-06-22 00:10:43 +0200
commit03cfe366fd0146cb4c3ede4dcdeeb2228a513e7d (patch)
tree4ea4874b420a859b706b1187440e2ed103800396 /db/migrate
parentf0161702d857a2f91d2e51469e8480253ffcd86e (diff)
parent0c3a337e045dbd4b7be6ae6c3f07969b42f08857 (diff)
Merge pull request #550 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20180616192031_add_chosen_languages_to_users.rb5
-rw-r--r--db/migrate/20180617162849_remove_unused_indexes.rb7
2 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20180616192031_add_chosen_languages_to_users.rb b/db/migrate/20180616192031_add_chosen_languages_to_users.rb
new file mode 100644
index 000000000..48b53019d
--- /dev/null
+++ b/db/migrate/20180616192031_add_chosen_languages_to_users.rb
@@ -0,0 +1,5 @@
+class AddChosenLanguagesToUsers < ActiveRecord::Migration[5.2]
+  def change
+    add_column :users, :chosen_languages, :string, array: true, null: true, default: nil
+  end
+end
diff --git a/db/migrate/20180617162849_remove_unused_indexes.rb b/db/migrate/20180617162849_remove_unused_indexes.rb
new file mode 100644
index 000000000..61add6385
--- /dev/null
+++ b/db/migrate/20180617162849_remove_unused_indexes.rb
@@ -0,0 +1,7 @@
+class RemoveUnusedIndexes < ActiveRecord::Migration[5.2]
+  def change
+    remove_index :statuses, name: "index_statuses_on_conversation_id"
+    remove_index :users, name: "index_users_on_filtered_languages"
+    remove_index :backups, name: "index_backups_on_user_id"
+  end
+end