ruby - Upgrading to Rails 4.1 from 4.0, now all tests are broken -
i upgraded rails version 4.1.1 4.0.4. whenever run rake test every test having error:
activerecord::statementinvalid: pg::undefinedtable: error: relation "roles_users" not exist line 1: delete "roles_users" ^ : delete "roles_users"
my user controller has , belongs many roles
has_and_belongs_to_many :some_names, class_name: "role", join_table: "some_names_users"
so should not looking roles_users table, seems in fixtures tests.
i using minitest 5.3.4. not using gem turn.
this bug in rails 4.1; it's been fixed , i'd expect part of next release (4.1.2).
in mean time, might able use 4-1-stable branch:
gem 'rails', github: 'rails/rails', branch: '4-1-stable'
github issues:
Comments
Post a Comment