mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
remove migration bombs
This commit is contained in:
parent
2a586d59e9
commit
ea1cd8dcd4
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
class AddScoresToTopTopics < ActiveRecord::Migration
|
||||
def change
|
||||
TopTopic.periods.each do |period|
|
||||
[:daily, :weekly, :monthly, :yearly].each do |period|
|
||||
add_column :top_topics, "#{period}_score".to_sym, :float
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
class AddDefaultValueToTopTopicScores < ActiveRecord::Migration
|
||||
def change
|
||||
TopTopic.periods.each do |period|
|
||||
[:daily, :weekly, :monthly, :yearly].each do |period|
|
||||
change_column_default :top_topics, "#{period}_score".to_sym, 0
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue