How to use MySQL, InnoDB Spatial indexes in Rails?
<p>I want to use spatial columns in a Rails app to query the DB for points within a bounding box.</p>

<p>I have heard that MySQL 5.7+ can do that fine with InnoDB, but I don't know how to set it up.</p>

<p>I tried using <a href="https://github.com/rgeo/activerecord-mysql2spatial-adapter" rel="nofollow">https://github.com/rgeo/activerecord-mysql2spatial-adapter</a> but couldn't create the db, then realised it's not very actively maintained.</p>

<p>Has anyone done this recently/know how to configure a DB to have a model with a spatial column that can be used for a bounding box query?</p>