14 lines
295 B
Ruby
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
|