lib/rflow/configuration/shard.rb in rflow-1.0.0a1 vs lib/rflow/configuration/shard.rb in rflow-1.0.0a2

- old
+ new

@@ -1,19 +1,17 @@ require 'active_record' require 'rflow/configuration/uuid_keyed' class RFlow class Configuration - - class Shard < ConfigDB + class Shard < ConfigurationItem include UUIDKeyed include ActiveModel::Validations class ShardInvalid < StandardError; end has_many :components, :primary_key => 'uuid', :foreign_key => 'shard_uuid' - validates_presence_of :name validates_uniqueness_of :name validates_numericality_of :count, :only_integer => true, :greater_than => 0 end # STI-based classes