testy/db/migrate/20260517111110_create_price_reports.rb
Mohammad Kanaan 2cc3c1a7dd
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
initial commit
2026-05-17 14:12:43 +03:00

16 lines
459 B
Ruby

class CreatePriceReports < ActiveRecord::Migration[8.0]
def change
create_table :price_reports do |t|
t.decimal :price
t.decimal :discount_price
t.integer :upvotes
t.integer :downvotes
t.datetime :reported_at
t.references :product, null: false, foreign_key: true
t.references :store, null: false, foreign_key: true
t.references :guest, null: false, foreign_key: true
t.timestamps
end
end
end