about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-07-30 13:10:40 +0200
committerGitHub <noreply@github.com>2019-07-30 13:10:40 +0200
commit648cdbc04a21580a89d337edb0f45308aff1b93f (patch)
tree74cd75e61d937583617e952ae92a07327021de03 /db/migrate
parentb31b232edfcc7f04acf828bf6829ab716b290692 (diff)
Add hashtag score for better sorting of autosuggestions (#11427)
* Add hashtag score for better sorting of autosuggestions

* Do not use `~<~` operator with no text_pattern_ops index
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20190729185330_add_score_to_tags.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20190729185330_add_score_to_tags.rb b/db/migrate/20190729185330_add_score_to_tags.rb
new file mode 100644
index 000000000..75fee4b57
--- /dev/null
+++ b/db/migrate/20190729185330_add_score_to_tags.rb
@@ -0,0 +1,5 @@
+class AddScoreToTags < ActiveRecord::Migration[5.2]
+  def change
+    add_column :tags, :score, :int
+  end
+end