<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>TheWebFellas - Ruby on Rails Development Specialists UK - Rails 2.0: validates_acceptance_of can break migrations Comments</title>
  <id>tag:thewebfellas.com,2008:/blog/2007/12/16/rails-2-0-validates_acceptance_of-can-break-migrations/comments</id>
  <generator version="0.7.3" uri="http://mephistoblog.com">Mephisto Noh-Varr</generator>
  <link href="http://thewebfellas.com/blog/2007/12/16/rails-2-0-validates_acceptance_of-can-break-migrations/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/blog/2007/12/16/rails-2-0-validates_acceptance_of-can-break-migrations" rel="alternate" type="text/html"/>
  <updated>2008-01-10T15:10:35Z</updated>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Rob</name>
    </author>
    <id>tag:thewebfellas.com,2007-12-16:53:105</id>
    <published>2008-01-10T15:10:35Z</published>
    <updated>2008-01-10T15:10:35Z</updated>
    <category term="Blog"/>
    <link href="http://thewebfellas.com/blog/2007/12/16/rails-2-0-validates_acceptance_of-can-break-migrations" rel="alternate" type="text/html"/>
    <title>Comment on 'Rails 2.0: validates_acceptance_of can break migrations' by Rob</title>
<content type="html">&lt;p&gt;I actually had the same problem today and posted a description and a patch on the &lt;a href=&quot;http://rubyforge.org/forum/forum.php?thread_id=21092&amp;amp;forum_id=16450&quot; title=&quot;Read the post&quot;&gt;has_many_polymorphs forum&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;As I say in the post, the patch may not be the best approach but it has allowed me to run my migrations. Hope it helps!&lt;br /&gt;Rob&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Rob</name>
    </author>
    <id>tag:thewebfellas.com,2007-12-16:53:77</id>
    <published>2007-12-29T10:45:45Z</published>
    <updated>2007-12-29T10:45:45Z</updated>
    <category term="Blog"/>
    <link href="http://thewebfellas.com/blog/2007/12/16/rails-2-0-validates_acceptance_of-can-break-migrations" rel="alternate" type="text/html"/>
    <title>Comment on 'Rails 2.0: validates_acceptance_of can break migrations' by Rob</title>
<content type="html">&lt;p&gt;Hi,&lt;br /&gt;I’ve used the &lt;a href=&quot;http://blog.evanweaver.com/files/doc/fauna/has_many_polymorphs/files/README.html&quot; title=&quot;Find out about the crazy world of has_many_polymorphs&quot;&gt;has_many_polymorphs&lt;/a&gt; plugin for the first time this week and haven’t run into the problem you’re having - although admittedly I’m not using it with an observed model yet.&lt;/p&gt;

&lt;p&gt;I had a quick look but couldn’t see anything about problems with &lt;abbr title=&quot;has_many_polymorphs&quot;&gt;HMP&lt;/abbr&gt; and observers. Have you tried posting on the &lt;a href=&quot;http://rubyforge.org/forum/forum.php?forum_id=16450&quot; title=&quot;Go to the has_many_polymorphs support forum&quot;&gt;support forum&lt;/a&gt;? If anyone can help the guys there can!&lt;/p&gt;

&lt;p&gt;Rob&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>CodeOfficer</name>
    </author>
    <id>tag:thewebfellas.com,2007-12-16:53:65</id>
    <published>2007-12-24T10:39:00Z</published>
    <updated>2007-12-24T10:39:00Z</updated>
    <category term="Blog"/>
    <link href="http://thewebfellas.com/blog/2007/12/16/rails-2-0-validates_acceptance_of-can-break-migrations" rel="alternate" type="text/html"/>
    <title>Comment on 'Rails 2.0: validates_acceptance_of can break migrations' by CodeOfficer</title>
<content type="html">&lt;p&gt;I've run into a very similar error in regards to using has&lt;em&gt;many&lt;/em&gt;polymorphs AND restful_authentication. Specifically when I go the route of using a UserObserver model and declare it in my environment.rb file, i get the exact same error you see above, and my migrations refuse to work.&lt;/p&gt;

&lt;p&gt;Commenting out either the HMP lines in my models OR the observer line in my environment.rb makes the migration error go away. I'm at a complete loss for how to work around this and don't yet know enough about rails to know if its a rails issue or a plugin issue.&lt;/p&gt;</content>  </entry>
</feed>
