mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 10:36:22 +00:00
Resolver un problema de huevo y gallina
This commit is contained in:
parent
f664cce0da
commit
b640416028
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue