Add admin notifications for new Mastodon versions (#26582)
This commit is contained in:
parent
be991f1d18
commit
16681e0f20
39 changed files with 892 additions and 8 deletions
16
db/migrate/20230822081029_create_software_updates.rb
Normal file
16
db/migrate/20230822081029_create_software_updates.rb
Normal file
|
@ -0,0 +1,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
|
Loading…
Add table
Add a link
Reference in a new issue