price-point-api/db/migrate/20260530152329_create_votes.rb

12 lines
263 B
Ruby
Raw Normal View History

2026-05-30 16:15:24 +00:00
class CreateVotes < ActiveRecord::Migration[8.0]
def change
create_table :votes do |t|
t.references :user, null: false, foreign_key: true
t.string :votable=references{polymorphic}
t.integer :direction
t.timestamps
end
end
end