app/models/province.rb in china_regions-0.0.1 vs app/models/province.rb in china_regions-0.0.2

- old
+ new

@@ -1,8 +1,17 @@ +# encoding: utf-8 +class Province < ActiveRecord::Base + + attr_accessible :name, :name_en, :name_abbr + + has_many :cities, dependent: :destroy + has_many :districts, through: :cities + +end \ No newline at end of file