mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: auto-close topics based on last post
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class AddAutoCloseBasedOnLastPostAndAutoCloseHoursToTopics < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :topics, :auto_close_based_on_last_post, :boolean, default: false
|
||||
add_column :topics, :auto_close_hours, :float
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddAutoCloseBasedOnLastPostToCategories < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :categories, :auto_close_based_on_last_post, :boolean, default: false
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user