about summary refs log tree commit diff stats
path: root/db/migrate/20231020195330_make_blog_votable.rb
blob: 4d1e42a943eb0311d47bade724dbd238a0e18dc0 (plain) (blame)
1
2
3
4
5
6
7
8
class MakeBlogVotable < ActiveRecord::Migration[7.0]
  def change
    change_table :blogs do |t|
      t.integer :upvotes, default: 0, null: false
      t.integer :downvotes, default: 0, null: false
    end
  end
end