diff options
Diffstat (limited to 'rails-backend/db/migrate/20240521205000_create_games.rb')
| -rw-r--r-- | rails-backend/db/migrate/20240521205000_create_games.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/rails-backend/db/migrate/20240521205000_create_games.rb b/rails-backend/db/migrate/20240521205000_create_games.rb new file mode 100644 index 0000000..d65b118 --- /dev/null +++ b/rails-backend/db/migrate/20240521205000_create_games.rb @@ -0,0 +1,16 @@ +class CreateGames < ActiveRecord::Migration[7.1] + def change + create_table :games do |t| + t.string :title + t.string :titleSlug + t.string :description + t.string :github_link + t.string :img_rendering + t.integer :status, default: 0 + t.integer :order, default: 0 + + t.timestamps + end + add_reference :games, :user, null: false, foreign_key: true + end +end |
