Sha256: 3a9fb99a314786fdf957375b3d387d6d85f408efee4e40790044102aee7ef7b7

Contents?: true

Size: 215 Bytes

Versions: 4

Compression:

Stored size: 215 Bytes

Contents

module Prosperity
  class DashboardGraph < ActiveRecord::Base
    belongs_to :dashboard
    belongs_to :graph

    validates :dashboard, uniqueness: {scope: :graph, message: "already contains this graph"}
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
prosperity-0.0.11 app/models/prosperity/dashboard_graph.rb
prosperity-0.0.10 app/models/prosperity/dashboard_graph.rb
prosperity-0.0.9 app/models/prosperity/dashboard_graph.rb
prosperity-0.0.8 app/models/prosperity/dashboard_graph.rb