Commit 561d3275 authored by Douwe Maan's avatar Douwe Maan

Update column directly to prevent triggering before_save callback

parent 7de250fb
......@@ -7,9 +7,9 @@ describe RenameUsersWithRenamedNamespace, :delete do
other_user1 = create(:user, username: 'api0')
user = create(:user, username: "Users0")
user.update_attribute(:username, 'Users')
user.update_column(:username, 'Users')
user1 = create(:user, username: "import0")
user1.update_attribute(:username, 'import')
user1.update_column(:username, 'import')
described_class.new.up
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment