class CreateGames < ActiveRecord::Migration[7.0]
  def change
    create_table :games do |t|
      t.references :season, null: false, foreign_key: true
      t.references :team, null: false, foreign_key: true
      t.integer :matchday
      t.date :date
      t.boolean :homesite
      t.string :state   # open (convocatoria abierta), availability (quien juega) y close (convocatoria cerrada)

      t.timestamps
    end
  end
end
