• Arturo Herrero's avatar
    Add instance column to services table · eaf34116
    Arturo Herrero authored
    This is needed to support instance-level integrations alongside service
    templates.
    
    We want to make sure that we always have the correct state in the
    database. This commit is adding the following validations:
    - Validates presence of project_id if not instance
    - Validates absence of project_id if instance
    - Validates only one instance-level service per type
    - Validates service is instance or template
    eaf34116
schema.rb 271 KB