You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
433 B
17 lines
433 B
1 year ago
|
# 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
|