<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pivotal Labs &#187; Andreas Maier</title>
	<atom:link href="http://pivotallabs.com/author/amaier/feed/" rel="self" type="application/rss+xml" />
	<link>http://pivotallabs.com</link>
	<description>Agility Developed</description>
	<lastBuildDate>Fri, 24 May 2013 21:58:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>No delete for you today</title>
		<link>http://pivotallabs.com/no-delete-for-you-today/</link>
		<comments>http://pivotallabs.com/no-delete-for-you-today/#comments</comments>
		<pubDate>Thu, 10 Jan 2013 17:13:33 +0000</pubDate>
		<dc:creator>Andreas Maier</dc:creator>
				<category><![CDATA[Labs]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/?p=11580</guid>
		<description><![CDATA[<p>Interestings Don&#8217;t use delete_all Let&#8217;s say you have a has_many relationship &#8211; project has_many stories. You don&#8217;t have dependent: destroy on the association. If you call project.stories.delete_all, it does not delete the stories. Instead, it inserts NULL into the stories&#8217; project_id field. As a bonus, if the project_id field in the stories table has a not null constraint, then all of the project_ids become 0 &#8211; potentially attaching themselves to a completely different project. delete_all works properly if the association has a dependent: destroy clause, and destroy_all works properly in either case.</p><p>The post <a href="http://pivotallabs.com/no-delete-for-you-today/">No delete for you today</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Interestings</h2>
<h3>Don&#8217;t use delete_all</h3>
<p>Let&#8217;s say you have a has_many relationship &#8211; project has_many stories. You don&#8217;t have dependent: destroy on the association.</p>
<p>If you call project.stories.delete_all, it does not delete the stories. Instead, it inserts NULL into the stories&#8217; project_id field.</p>
<p>As a bonus, if the project_id field in the stories table has a not null constraint, then all of the project_ids become 0 &#8211; potentially attaching themselves to a completely different project.</p>
<p>delete_all works properly if the association has a dependent: destroy clause, and destroy_all works properly in either case.</p>
<p>The post <a href="http://pivotallabs.com/no-delete-for-you-today/">No delete for you today</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/no-delete-for-you-today/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails dies again</title>
		<link>http://pivotallabs.com/rails-dies-again/</link>
		<comments>http://pivotallabs.com/rails-dies-again/#comments</comments>
		<pubDate>Wed, 09 Jan 2013 17:17:41 +0000</pubDate>
		<dc:creator>Andreas Maier</dc:creator>
				<category><![CDATA[Labs]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/?p=11563</guid>
		<description><![CDATA[<p>Helps Change Lobot instance type on EC2 We are running on a c1.medium( 1.75GB memory, 5CU) and want to change to something like m1.large or m1.medium with more generous memory allocation. What would be the best way to do it? Change the type from EC2 console or start from scratch? Interestings New Severe Rails Vulnerability All versions of Rails are affected. There are multiple weaknesses in the parameter parsing code for Ruby on Rails which allows attackers to bypass authentication systems, inject arbitrary SQL, inject and execute arbitrary code, or perform a DoS attack on a Rails application. It is recommended for everyone to upgrade immediately to patched version. Multiple vulnerabilities in parameter parsing in Action Pack</p><p>The post <a href="http://pivotallabs.com/rails-dies-again/">Rails dies again</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Helps</h2>
<h3>Change Lobot instance type on EC2</h3>
<p>We are running on a c1.medium( 1.75GB memory, 5CU) and want to change to something like m1.large or m1.medium with more generous memory allocation. What would be the best way to do it? Change the type from EC2 console or start from scratch?</p>
<h2>Interestings</h2>
<h3>New Severe Rails Vulnerability</h3>
<p>All versions of Rails are affected. There are multiple weaknesses in the parameter parsing code for Ruby on Rails which allows attackers to bypass authentication systems, inject arbitrary SQL, inject and execute arbitrary code, or perform a DoS attack on a Rails application.</p>
<p>It is recommended for <em>everyone</em> to upgrade immediately to patched version.</p>
<p><a href="https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ/discussion">Multiple vulnerabilities in parameter parsing in Action Pack</a></p>
<p>The post <a href="http://pivotallabs.com/rails-dies-again/">Rails dies again</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/rails-dies-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using apc
Database Caching using apc
Object Caching 471/495 objects using apc

 Served from: pivotallabs.com @ 2013-05-25 08:44:12 by W3 Total Cache -->