5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 17:16:22 +00:00

fix: los roles pueden ser opcionales

This commit is contained in:
f 2024-06-14 16:25:03 -03:00
parent cc3b92f5ff
commit 454d0b5c1e
No known key found for this signature in database
3 changed files with 11 additions and 2 deletions

View file

@ -10,7 +10,7 @@ require 'open3'
# :attributes`.
class Deploy < ApplicationRecord
belongs_to :site
belongs_to :rol
belongs_to :rol, optional: true
has_many :build_stats, dependent: :destroy

View file

@ -0,0 +1,8 @@
# frozen_string_literal: true
# El rol_id no es necesario para todos los deploys
class DeployRolIdCanBeNull < ActiveRecord::Migration[6.1]
def change
change_column :deploys, :rol_id, :integer, null: true
end
end

View file

@ -2719,6 +2719,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20240316203721'),
('20240318183846'),
('20240319124212'),
('20240319144735');
('20240319144735'),
('20240614191548');