~cytrogen/masto-fe

ref: a001ae2f3943d8ac111c6437ee6ff890e94544ac masto-fe/db/migrate/20230822081029_create_software_updates.rb -rw-r--r-- 433 bytes
a001ae2f — Claire Fix explore prompt sometimes showing up when the home TL is loading (#27062) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class CreateSoftwareUpdates < ActiveRecord::Migration[7.0]
  def change
    create_table :software_updates do |t|
      t.string :version, null: false
      t.boolean :urgent, default: false, null: false
      t.integer :type, default: 0, null: false
      t.string :release_notes, default: '', null: false

      t.timestamps
    end

    add_index :software_updates, :version, unique: true
  end
end