Revision 30ba36d1
Added by Ohad Levy over 14 years ago
- ID 30ba36d1d765c4c4235799c49d74a2d210fbb5f5
app/models/ptable.rb | ||
---|---|---|
before_destroy Ensure_not_used_by.new(:hosts)
|
||
validates_uniqueness_of :name
|
||
validates_uniqueness_of :layout
|
||
validates_format_of :name, :layout, :with => /\A(\S+\s?)+\Z/, :message => "can't be blank or contain trailing white spaces."
|
||
validates_presence_of :layout
|
||
validates_format_of :name, :with => /\A(\S+\s?)+\Z/, :message => "can't be blank or contain trailing white spaces."
|
||
end
|
Also available in: Unified diff
db:migrate failed, commenting this test and implementation for now