lundi 11 avril 2016

rake db:migrate starting from the beginning and not just running new migrations

I'm running this command:

RAILS_ENV=development bundle exec rake db:migrate

and I get:

Connecting to database specified by database.yml
   (0.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations"
Migrating to DeviseCreateUsers (20120615164945)
   (0.2ms)  BEGIN
==  DeviseCreateUsers: migrating -  ===========================================
-- create_table(:users)
   (3.8ms)  CREATE TABLE "users" ("id" serial primary key,

That 2012 migration is the first migration ever. It shouldn't be running that one right? Why is that occurring?

Aucun commentaire:

Enregistrer un commentaire