Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[ca2115]: app / models / tdm / build_target.rb Maximize Restore History

Download this file

build_target.rb    27 lines (24 with data), 785 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
# This file is part of the Jikes RVM project (http://jikesrvm.org).
#
# This file is licensed to You under the Eclipse Public License (EPL);
# You may not use this file except in compliance with the License. You
# may obtain a copy of the License at
#
# http://www.opensource.org/licenses/cpl1.0.php
#
# See the COPYRIGHT.txt file distributed with this work for information
# regarding copyright ownership.
#
class Tdm::BuildTarget < ActiveRecord::Base
validates_format_of :name, :with => /^[\-a-zA-Z_0-9]+$/
validates_length_of :name, :in => 1..75
validates_uniqueness_of :test_run_id
validates_presence_of :test_run_id
validates_reference_exists :test_run_id, Tdm::TestRun
belongs_to :test_run
has_params :params
def parent_node
test_run
end
end