lib/generators/china_regions/templates/migration.rb in china_regions-1.0.2 vs lib/generators/china_regions/templates/migration.rb in china_regions-1.0.3

- old
+ new

@@ -11,10 +11,11 @@ create_table :provinces do |t| t.string :name t.integer :code t.string :name_en t.string :name_abbr + t.integer :cities_count, default: 0 t.timestamps end add_index :provinces, :name @@ -26,9 +27,10 @@ t.integer :code t.integer :province_id t.integer :level t.string :name_en t.string :name_abbr + t.integer :districts_count, default: 0 t.timestamps end add_index :cities, :name