lib/generators/china_regions/templates/migration.rb in china_regions-0.4.2 vs lib/generators/china_regions/templates/migration.rb in china_regions-0.4.3

- old
+ new

@@ -5,10 +5,11 @@ unless table_exists? 'provinces' create_table :provinces do |t| t.string :name t.string :name_en t.string :name_abbr + t.timestamps end add_index :provinces, :name end @@ -19,10 +20,11 @@ t.integer :province_id t.integer :level t.string :zip_code t.string :name_en t.string :name_abbr + t.timestamps end add_index :cities, :name end @@ -31,9 +33,10 @@ create_table :districts do |t| t.string :name t.integer :city_id t.string :name_en t.string :name_abbr + t.timestamps end add_index :districts, :name end end