8 lines
229 B
Ruby
8 lines
229 B
Ruby
class AddCommentsCountToPolls < ActiveRecord::Migration
|
|
def change
|
|
add_column :polls, :comments_count, :integer, default: 0
|
|
add_column :polls, :author_id, :integer
|
|
add_column :polls, :hidden_at, :datetime
|
|
end
|
|
end
|