mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 00:02:05 -05:00
12 lines
277 B
Ruby
12 lines
277 B
Ruby
|
class AddWordCountToPosts < ActiveRecord::Migration
|
||
|
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
|