mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
11 lines
282 B
Ruby
11 lines
282 B
Ruby
class AddWordCountToPosts < ActiveRecord::Migration[4.2]
|
|
def up
|
|
add_column :posts, :word_count, :integer
|
|
add_column :topics, :word_count, :integer
|
|
end
|
|
|
|
def down
|
|
remove_column :posts, :word_count, :integer
|
|
remove_column :topics, :word_count, :integer
|
|
end
|
|
end
|