about summary refs log tree commit diff stats
path: root/db/migrate/20231020194529_create_votes.rb
blob: 947652bc466f7d205b171a3f939846669fa24da4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
class CreateVotes < ActiveRecord::Migration[7.0]
  def change
    create_table :votes do |t|
      t.references :votable, polymorphic: true
      t.integer :upvote
      t.string :ip

      t.timestamps
    end
  end
end