price-point-api/db/migrate/20260530152329_create_votes.rb
Mohammad Kanaan 82f48c9ad3 WIP 2
2026-05-30 19:39:28 +03:00

11 lines
275 B
Ruby

class CreateVotes < ActiveRecord::Migration[8.0]
def change
create_table :votes do |t|
t.references :user, null: false, foreign_key: true
t.references :votable, polymorphic: true, null: false
t.integer :direction
t.timestamps
end
end
end