Different options are available in rails for creating datatypes.
Assuming polygon data is queried via an API and,