5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 04:26:22 +00:00

Resolver un problema de huevo y gallina

This commit is contained in:
f 2021-09-25 19:34:21 -03:00
parent f664cce0da
commit b640416028
2 changed files with 1 additions and 3 deletions

View file

@ -22,8 +22,6 @@ class AddCanonicalDeployToSites < ActiveRecord::Migration[6.1]
site.update_columns canonical_deploy_id: deploy.id
end
change_column :sites, :canonical_deploy_id, :bigint, null: false
end
def down

View file

@ -13,7 +13,7 @@ FactoryBot.define do
# Factory porque necesitamos que el sitio se genere solo.
#
# @see {https://github.com/thoughtbot/factory_bot/wiki/How-factory_bot-interacts-with-ActiveRecord}
site.deploys.build(type: 'DeployLocal')
site.canonical_deploy = site.deploys.build(type: 'DeployLocal')
end
end
end