Skip to content

Commit

Permalink
Merge pull request ManageIQ#20672 from jaywcarman/cloud_subnet_add_ne…
Browse files Browse the repository at this point in the history
…twork_type

Add new 'CloudSubnet' extra attribute column
  • Loading branch information
agrare authored Oct 8, 2020
2 parents e839059 + 57308ef commit 110e5d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/cloud_subnet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ class CloudSubnet < ApplicationRecord
virtual_column :host_routes, :type => :string
virtual_column :ip_version, :type => :string
virtual_column :subnetpool_id, :type => :string
virtual_column :network_type, :type => :string

# Define all getters and setters for extra_attributes related virtual columns
%i(allocation_pools host_routes ip_version subnetpool_id).each do |action|
%i(allocation_pools host_routes ip_version subnetpool_id network_type).each do |action|
define_method("#{action}=") do |value|
extra_attributes_save(action, value)
end
Expand Down

0 comments on commit 110e5d7

Please sign in to comment.