summaryrefslogtreecommitdiffhomepage
path: root/db/migrate/20240509225147_create_games.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20240509225147_create_games.rb')
-rw-r--r--db/migrate/20240509225147_create_games.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20240509225147_create_games.rb b/db/migrate/20240509225147_create_games.rb
new file mode 100644
index 0000000..af8f77b
--- /dev/null
+++ b/db/migrate/20240509225147_create_games.rb
@@ -0,0 +1,12 @@
+class CreateGames < ActiveRecord::Migration[7.1]
+ def change
+ create_table :games do |t|
+ t.string :title
+ #t.text :body
+ #t.integer :status, default: 0
+ #t.references :user, null: false, foreign_key: true
+
+ t.timestamps
+ end
+ end
+end