diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-30 13:29:08 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-30 13:29:08 -0500 |
commit | 0929719a845897cc8567cf972e07a69a71f0fa6f (patch) | |
tree | 2b6f69c1d906abb6e0abf8a0f1d51725bc78087d /db/migrate/20231130173513_create_scores.rb | |
parent | 01c1947537e4e23ded0c16812a7cd9d49ad88356 (diff) | |
download | wittle-0929719a845897cc8567cf972e07a69a71f0fa6f.tar.gz wittle-0929719a845897cc8567cf972e07a69a71f0fa6f.tar.bz2 wittle-0929719a845897cc8567cf972e07a69a71f0fa6f.zip |
Migrate to a full rails app
Diffstat (limited to 'db/migrate/20231130173513_create_scores.rb')
-rw-r--r-- | db/migrate/20231130173513_create_scores.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20231130173513_create_scores.rb b/db/migrate/20231130173513_create_scores.rb new file mode 100644 index 0000000..953ba8d --- /dev/null +++ b/db/migrate/20231130173513_create_scores.rb | |||
@@ -0,0 +1,12 @@ | |||
1 | class CreateScores < ActiveRecord::Migration[7.1] | ||
2 | def change | ||
3 | create_table :scores do |t| | ||
4 | t.references :puzzle, null: false | ||
5 | t.string :name | ||
6 | t.string :ip | ||
7 | t.integer :seconds_taken | ||
8 | |||
9 | t.timestamps | ||
10 | end | ||
11 | end | ||
12 | end | ||