<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: dx0x58</title>
    <description>The latest articles on DEV Community by dx0x58 (@dx0x58).</description>
    <link>https://dev.to/dx0x58</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F157073%2Ff7f41646-4a1b-4139-b2d0-d56811f71788.jpeg</url>
      <title>DEV Community: dx0x58</title>
      <link>https://dev.to/dx0x58</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dx0x58"/>
    <language>en</language>
    <item>
      <title>How to fix Rails ActiveRecord::ConcurrentMigrationError</title>
      <dc:creator>dx0x58</dc:creator>
      <pubDate>Sun, 05 May 2019 18:33:33 +0000</pubDate>
      <link>https://dev.to/dx0x58/how-to-fix-rails-activerecord-concurrentmigrationerror-1g65</link>
      <guid>https://dev.to/dx0x58/how-to-fix-rails-activerecord-concurrentmigrationerror-1g65</guid>
      <description>&lt;p&gt;To correct an &lt;code&gt;ActiveRecord::ConcurrentMigrationError&lt;/code&gt; when trying to run Rails databases migrations, you need to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;open &lt;code&gt;psql&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Select advisory locks 
&lt;code&gt;SELECT pid, locktype, mode FROM pg_locks WHERE locktype = 'advisory';&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Kill this scoundrels! 
&lt;code&gt;SELECT pg_terminate_backend(&amp;lt;PID&amp;gt;);&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>rails</category>
      <category>database</category>
      <category>postgres</category>
    </item>
  </channel>
</rss>
