5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 00:06:21 +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 site.update_columns canonical_deploy_id: deploy.id
end end
change_column :sites, :canonical_deploy_id, :bigint, null: false
end end
def down def down

View file

@ -13,7 +13,7 @@ FactoryBot.define do
# Factory porque necesitamos que el sitio se genere solo. # Factory porque necesitamos que el sitio se genere solo.
# #
# @see {https://github.com/thoughtbot/factory_bot/wiki/How-factory_bot-interacts-with-ActiveRecord} # @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 end
end end