price-point-api/db/migrate/20260530152329_create_votes.rb
Mohammad Kanaan 5a9f9ee10c WIP 1
2026-05-30 19:15:24 +03:00

11 lines
263 B
Ruby

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