Add instance info support

This commit is contained in:
KMY 2023-08-05 09:10:55 +09:00
parent 54f63a4be2
commit d29b71bfd9
13 changed files with 181 additions and 16 deletions

View 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