corincerami / mars-photo-api

A Rails API for photo data from NASA's Mars Rovers
https://api.nasa.gov/#MarsPhotos
GNU General Public License v3.0
352 stars 48 forks source link

Allow migrations to run with empty database #17

Closed HeroicEric closed 8 years ago

HeroicEric commented 8 years ago

This migration could not be run with a fresh database because it was relying on the “Curiosity” rover to exist in the database.

It was also relying on the existence of a Rover class, which has now been defined at the top of the migration to ensure that even if this class is renamed/moved etc., this migration will still work.

corincerami commented 8 years ago

Thanks!