Rails 5 uses npm to handle javascript dependancies, node_modules should not be checked in to git.
@@ -42,3 +42,7 @@ bower.json
# Ignore Byebug command history file.
.byebug_history
+
+# Ignore node_modules
+node_modules/