views:

80

answers:

1

Where can I download the rails migration file for country, state and city table

+3  A: 

Look for ISO 3166. The ISO lists are here.

The country select is now outside of rails core in order to sidestep political issues (China - Taiwan and so forth) so you'll need a plugin, such as this one, to give you the functionality.

I've never heard of a migration that would populate a table with this data.

srboisvert