Skip to content

Commit 35c601c

Browse files
committed
Fix incorrect class name in backfill migration
1 parent 860657b commit 35c601c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/migrate/20181119161514_add_user_to_proxy_exercise.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ def change
1313
add_column :proxy_exercises, :public, :boolean, null: false, default: false
1414

1515
internal_user = InternalUser.find_by(id: 46) || InternalUser.first
16-
ProxyExercise.update(user_id: internal_user&.id || 1, user_type: internal_user.class.name)
16+
ProxyExercise.update(user_id: internal_user&.id || 1, user_type: internal_user.class.name.demodulize)
1717
end
1818
end

0 commit comments

Comments
 (0)