5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-21 16:56:21 +00:00

fix: arreglar migración

This commit is contained in:
f 2024-05-31 10:06:44 -03:00
parent 6ca3adc265
commit 78fd8c933a
No known key found for this signature in database
2 changed files with 1 additions and 10 deletions

View file

@ -12,7 +12,7 @@ class CreateFediblocks < ActiveRecord::Migration[6.1]
t.string :url, null: false
t.string :download_url, null: false
t.string :format, null: false
t.jsonb :instances, default: []
t.jsonb :hostnames, default: []
end
YAML.safe_load(File.read('db/seeds/activity_pub/fediblocks.yml')).each do |fediblock|

View file

@ -1,9 +0,0 @@
# frozen_string_literal: true
# Cambia el nombre de la columna para que podamos obtener todas las
# instancias de un fediblock
class RenameFediblockInstancesToHostnames < ActiveRecord::Migration[6.1]
def change
rename_column :activity_pub_fediblocks, :instances, :hostnames
end
end