title: What is causing the Listen error in rails app
body: <p>So I did some changes in the schema.rb file and as far as I think, that is what caused this error. Also I think I deleted some migration files improperly.</p>
  
  <pre><code>FATAL: Listen error: unable to monitor directories for changes.
  </code></pre>
  
  <p>Its coming on every rails command I use on the terminal</p>
  
  <p>I have seen this as the solution everywhere</p>
  
  <pre><code>echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf &amp;&amp; sudo sysctl -p
  </code></pre>
  
  <p>But I don't get what it does. Could someone explain what is going on here. As in what is the solution doing and what actually caused this error.</p>