Change trending hashtags to not disappear instantly after midnight (#11712)
This commit is contained in:
parent
ac6935b629
commit
70ddef2654
10 changed files with 179 additions and 37 deletions
12
db/post_migrate/20190901040524_remove_score_from_tags.rb
Normal file
12
db/post_migrate/20190901040524_remove_score_from_tags.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveScoreFromTags < ActiveRecord::Migration[5.2]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
safety_assured do
|
||||
remove_column :tags, :score, :int
|
||||
remove_column :tags, :last_trend_at, :datetime
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue