mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
BUGFIX: add default value to top_topics' scores
This commit is contained in:
parent
77133fd896
commit
11dcd2f6c5
1 changed files with 7 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue