Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 10, 2018. It is now read-only.
This repository was archived by the owner on Mar 10, 2018. It is now read-only.

ActiveRecord::DuplicateMigrationNameError #23

@jsiragusa

Description

@jsiragusa

I'm getting an ActiveRecord::DuplicateMigrationNameError during rake db:migrate

My steps are:

  • Add to Gemfile:
gem 'kaminari' # required by coupons
gem 'coupons', :git => 'https://github.com/fnando/coupons.git'
  • bundle install
  • rake coupons:install:migrations
  • rake db:migrate which generates the following error:
rake aborted!
ActiveRecord::DuplicateMigrationNameError: 

Multiple migrations have the name SetupCoupons

I only have new 1 migration file in db/migrate and none of my existing migrations have the name SetupCoupons.

Rails 4.2.6
Ruby 2.3.1p112
Bundler 1.12.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions