Update from 5.4 to 6.x failed
Created by: JasonMing
Update from 5-4-stable to 6-0-stable, failed on bundle exec rake db:migrate RAILS_ENV=production
.
[git@localhost gitlab]$ bundle exec rake db:migrate RAILS_ENV=production
== CreateUsersGroups: migrating ==============================================
-- create_table(:users_groups)
rake aborted!
An error has occurred, all later migrations canceled:
Mysql2::Error: Table 'users_groups' already exists: CREATE TABLE `users_groups` (`id` int(11) DEFAULT NULL auto_incremen
t PRIMARY KEY, `group_access` int(11) NOT NULL, `group_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `created_at` da
tetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecor
d-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query'
Seems the users_groups table has already exists ?