DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for: class MigrationClass < ActiveRecord::Migration[4.2] (called from require at bin/rails:4)
8 lines
234 B
Ruby
8 lines
234 B
Ruby
class AddCommentsCountToPolls < ActiveRecord::Migration[4.2]
|
|
def change
|
|
add_column :polls, :comments_count, :integer, default: 0
|
|
add_column :polls, :author_id, :integer
|
|
add_column :polls, :hidden_at, :datetime
|
|
end
|
|
end
|