about summary refs log tree commit diff stats
path: root/db/migrate/20231130173513_create_scores.rb
blob: 953ba8d65870c0dac4884a3d283c4f10f28adbbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
class CreateScores < ActiveRecord::Migration[7.1]
  def change
    create_table :scores do |t|
      t.references :puzzle, null: false
      t.string :name
      t.string :ip
      t.integer :seconds_taken

      t.timestamps
    end
  end
end