Revision 3034e8e2
Added by Ori Rabin almost 10 years ago
app/models/key_pair.rb | ||
---|---|---|
class KeyPair < ActiveRecord::Base
|
||
belongs_to :compute_resource
|
||
validates_lengths_from_database
|
||
validates :name, :secret, :presence => true
|
||
validates :compute_resource_id, :presence => true, :uniqueness => true
|
||
|
Also available in: Unified diff
fixes #6636, #6657, #6694 - add field length validations, extend audit field length