gambosite/db/migrate/20250310212905_create_loots.rb
2025-03-11 09:52:32 -07:00

14 lines
295 B
Ruby

class CreateLoots < ActiveRecord::Migration[8.0]
def change
create_table :loots do |t|
t.integer :item_id
t.datetime :timestamp
t.string :item_name
t.string :roll_type
t.references :player, null: false, foreign_key: true
t.timestamps
end
end
end