20230822081029_create_software_updates.rb 433 B

12345678910111213141516
  1. # frozen_string_literal: true
  2. class CreateSoftwareUpdates < ActiveRecord::Migration[7.0]
  3. def change
  4. create_table :software_updates do |t|
  5. t.string :version, null: false
  6. t.boolean :urgent, default: false, null: false
  7. t.integer :type, default: 0, null: false
  8. t.string :release_notes, default: '', null: false
  9. t.timestamps
  10. end
  11. add_index :software_updates, :version, unique: true
  12. end
  13. end