Change trending hashtags to not disappear instantly after midnight (#11712)
This commit is contained in:
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
|
Reference in New Issue
Block a user