# Rails fixtures - defining a table name?

**URL:** <https://www.ruby-forum.com/t/rails-fixtures-defining-a-table-name/180600>\
**Category:** Rails\
**Created:** [December 22, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/rails-fixtures-defining-a-table-name/180600 "2009-12-22T15:25:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jon-d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecccb3/32.png) [@jon-d](https://www.ruby-forum.com/u/jon-d)\
**Post date:** [December 22, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/rails-fixtures-defining-a-table-name/180600/1 "2009-12-22T15:25:37Z")

</div>

Hi,

At the minute all my fixtures have the same name as the table that they  
are intended for, because of a recent issue with rails it doesn’t seem  
possible to have a fixture beginning with the word ‘test’

Does anyone know of a way to have a different fixture name and then map  
it to the correct table?

Thanks

---

<div class="post-metadata">

**Author:** ![jon-d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecccb3/32.png) [@jon-d](https://www.ruby-forum.com/u/jon-d)\
**Post date:** [December 22, 2009, 4:08pm UTC](https://www.ruby-forum.com/t/rails-fixtures-defining-a-table-name/180600/2 "2009-12-22T16:08:42Z")

</div>

Jon Morgan wrote:

> Hi,
> 
> At the minute all my fixtures have the same name as the table that they  
> are intended for, because of a recent issue with rails it doesn’t seem  
> possible to have a fixture beginning with the word ‘test’
> 
> Does anyone know of a way to have a different fixture name and then map  
> it to the correct table?

Fixtures are pretty closely tied to tables – just another problem with  
them – so I’d be surprised if this were possible.

My advice: get rid of fixtures and use Machinist. Fixtures were a  
horrible mistake and should be removed from the Rails core.

> Thanks

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid
