# Can you reproduce this error?

**URL:** <https://www.ruby-forum.com/t/can-you-reproduce-this-error/116478>\
**Category:** Rails\
**Created:** [October 5, 2007, 9:59pm UTC](https://www.ruby-forum.com/t/can-you-reproduce-this-error/116478 "2007-10-05T21:59:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eggie5](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/7c8e57/32.png) [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Post date:** [October 5, 2007, 9:59pm UTC](https://www.ruby-forum.com/t/can-you-reproduce-this-error/116478/1 "2007-10-05T21:59:21Z")

</div>

Generate a model with a property named ‘y’ of any type. You should end  
up with a migration something like this:

class CreateYTests \< ActiveRecord::Migration  
def self.up  
create\_table :y\_tests do |t|

```
  t.integer :y
end

```

end

def self.down  
drop\_table :y\_tests  
end  
end

Then try to run YTest.new.to\_xml and YTest.new.to\_json in the console.

They should error and YTest.to\_yaml should not error. Do they?

See:

[http://dev.rubyonrails.org/ticket/9797](http://dev.rubyonrails.org/ticket/9797)
