Sha256: f86ddda8fd015f2f2b42ace77af943870aa098de43e972c4c66383cd5d203478

Contents?: true

Size: 265 Bytes

Versions: 3

Compression:

Stored size: 265 Bytes

Contents

module Perus::Server
    class Group < Sequel::Model
        plugin :validation_helpers
        one_to_many :systems
        
        def validate
            super
            validates_presence  :name
            validates_unique    :name
        end
    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
perus-0.1.2 lib/perus/server/models/group.rb
perus-0.1.1 lib/perus/server/models/group.rb
perus-0.1.0 lib/perus/server/models/group.rb