class CreateVotes < ActiveRecord::Migration
  def change
    create_table :votes do |t|
      t.integer :count, null: false, default: 0
      t.references :user
      t.references :voteable, polymorphic: true, index: true
      t.timestamps null: false
    end
  end
end

class CreateVotes < ActiveRecord::Migration
  def change
    create_table :votes do |t|
      t.boolean :upvote, null: false
      t.references :user
      t.references :voteable, polymorphic: true, index: true
      t.timestamps null: false
    end
  end
end

Change votes table to have boolean instead of count
Change votes table to have boolean instead of count
