class CreateQuizzes < ActiveRecord::Migration[7.0]
  def change
    create_table :quizzes do |t|
      t.datetime :expiration_date
      t.boolean :is_active, default: true
      t.string :title, null: false, default: ''
      t.text :description, null: false, default: ''
      t.references :user, null: false, foreign_key: true

      t.timestamps
    end
  end
end
