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:
parent
6ca3adc265
commit
78fd8c933a
2 changed files with 1 additions and 10 deletions
|
@ -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|
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue