2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/db/migrate/20131210163702_add_word_count_to_posts.rb

12 lines
282 B
Ruby
Raw Normal View History

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