summaryrefslogtreecommitdiffhomepage
path: root/db/migrate/20240521205000_create_games.rb
blob: 236c0705e911e677b5cf45350ba718d58cb34abd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class CreateGames < ActiveRecord::Migration[7.1]
  def change
    create_table :games do |t|
      t.string :title
      t.string :titleSlug
      t.string :description
      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