app/models/unidom/party/government_agency.rb in unidom-party-0.4 vs app/models/unidom/party/government_agency.rb in unidom-party-0.4.1
- old
+ new
@@ -1,8 +1,8 @@
# Government Agency 是政府机构。
class Unidom::Party::GovernmentAgency < ActiveRecord::Base
- self.table = 'unidom_government_agencies'
+ self.table_name = 'unidom_government_agencies'
validates :name, presence: true, length: { in: 2..self.columns_hash['name'].limit }
belongs_to :supervision_region, polymorphic: true