Rails fixtures - defining a table name?

3 views
Skip to first unread message

Jon Morgan

unread,
Dec 22, 2009, 9:25:37 AM12/22/09
to rubyonra...@googlegroups.com
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
--
Posted via http://www.ruby-forum.com/.

Marnen Laibow-Koser

unread,
Dec 22, 2009, 10:08:42 AM12/22/09
to rubyonra...@googlegroups.com
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
mar...@marnen.org

Reply all
Reply to author
Forward
0 new messages