summaryrefslogtreecommitdiff
path: root/db/migrate/20231030045243_create_games.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20231030045243_create_games.rb')
-rw-r--r--db/migrate/20231030045243_create_games.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20231030045243_create_games.rb b/db/migrate/20231030045243_create_games.rb
new file mode 100644
index 0000000..a46c0cc
--- /dev/null
+++ b/db/migrate/20231030045243_create_games.rb
@@ -0,0 +1,9 @@
+class CreateGames < ActiveRecord::Migration[7.1]
+ def change
+ create_table :games do |t|
+ t.string :title, null: false
+
+ t.timestamps
+ end
+ end
+end