lib/legion/data/models/environment.rb in legion-data-0.1.1 vs lib/legion/data/models/environment.rb in legion-data-0.2.0
- old
+ new
@@ -1,12 +1,13 @@
# frozen_string_literal: true
module Legion
module Data
module Model
- # Used for accessing legion.environments
class Environment < Sequel::Model
one_to_many :node
+ many_to_one :user_owner, class: Legion::Data::Model::User
+ many_to_one :group_owner, class: Legion::Data::Model::Group
end
end
end
end