foreman-docker / app / models / docker_container_wizard_states / image.rb @ cc6d0d73
1 |
module DockerContainerWizardStates |
---|---|
2 |
class Image < ActiveRecord::Base |
3 |
self.table_name_prefix = 'docker_container_wizard_states_' |
4 |
belongs_to :wizard_state, :class_name => DockerContainerWizardState, |
5 |
:foreign_key => :docker_container_wizard_state_id |
6 |
delegate :compute_resource_id, :to => :wizard_state |
7 |
|
8 |
validates :tag, :presence => true |
9 |
validates :repository_name, :presence => true |
10 |
end
|
11 |
end
|