mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 23:07:28 +08:00
BUGFIX: add default value to top_topics' scores
This commit is contained in:
@ -0,0 +1,7 @@
|
|||||||
|
class AddDefaultValueToTopTopicScores < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
TopTopic.periods.each do |period|
|
||||||
|
change_column_default :top_topics, "#{period}_score".to_sym, 0
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Reference in New Issue
Block a user