Add instance info support
This commit is contained in:
parent
54f63a4be2
commit
d29b71bfd9
13 changed files with 181 additions and 16 deletions
14
db/migrate/20230804222017_create_instance_infoes.rb
Normal file
14
db/migrate/20230804222017_create_instance_infoes.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateInstanceInfoes < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :instance_infos do |t|
|
||||
t.string :domain, null: false, default: '', index: { unique: true }
|
||||
t.string :software, null: false, default: ''
|
||||
t.string :version, null: false, default: ''
|
||||
t.jsonb :data, null: false, default: {}
|
||||
t.datetime :created_at, null: false
|
||||
t.datetime :updated_at, null: false
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue