Skip to content

Commit

Permalink
Merge pull request #1218 from 3scale/fix-path-oracle
Browse files Browse the repository at this point in the history
[oracle] Fix for empty String in Oracle
  • Loading branch information
Martouta committed Sep 21, 2019
2 parents 81ff525 + 1661647 commit 4c3d753
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/backend_api_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class BackendApiConfig < ApplicationRecord
belongs_to :service, inverse_of: :backend_api_configs
belongs_to :backend_api, inverse_of: :backend_api_configs

attribute :path, Type::String.new

has_many :backend_api_metrics, through: :backend_api, source: :metrics

validates :path, length: { in: 0..255, allow_nil: false }, path: true
Expand Down

0 comments on commit 4c3d753

Please sign in to comment.