Sha256: ce16563ec49978e6574c9c12cffc14745d7120b604b0df848b0653489c26de74
Contents?: true
Size: 337 Bytes
Versions: 4
Compression:
Stored size: 337 Bytes
Contents
class CreateTransactions < ActiveRecord::Migration[7.0] def change create_table :transactions do |t| t.references :user, null:false, foreign_key:{to_table: :users} t.references :restaurant, null:false, foreign_key:{to_table: :restaurants} t.float :transaction_sum, null:false t.timestamps end end end
Version data entries
4 entries across 4 versions & 1 rubygems