lib/dcmgr/models/account.rb in wakame-vdc-agents-11.06.0 vs lib/dcmgr/models/account.rb in wakame-vdc-agents-11.12.0
- old
+ new
@@ -7,15 +7,9 @@
unrestrict_primary_key
DISABLED=0
ENABLED=1
- inheritable_schema do
- String :description, :size=>100
- Fixnum :enabled, :default=>ENABLED, :null=>false
- end
- with_timestamps
-
one_to_many :tags, :dataset=>lambda { Tag.filter(:account_id=>self.canonical_uuid); }
one_to_one :quota, :class=>Quota, :key=>:account_id
# sti plugin has to be loaded at lower position.
plugin :subclasses