Add zap model, user relation

This commit is contained in:
2024-05-04 17:05:34 +02:00
parent 619bd954b7
commit 49d24990b4
5 changed files with 38 additions and 4 deletions

View File

@@ -0,0 +1,13 @@
class CreateZaps < ActiveRecord::Migration[7.1]
def change
create_table :zaps do |t|
t.references :user, null: false, foreign_key: true
t.json :request
t.json :receipt
t.text :payment_request
t.bigint :amount
t.timestamps
end
end
end