[Rails] Re: db:fixures:load does not call Model.save()
On Jul 28, 4:22 am, isyairazu <isyair...@gmail.com> wrote:
>
> $ sqlite3 db/development.sqlite3
> sqlite> select * from balances;
> //=> |xxx|10|1||...
> // equal is not 9
>
> Even create_or_update() was the same.
>
fixtures are directly inserted into the db
> Should I write it as
> equal: 9
> in the fixture-file?
>
> It's not DRY.
>
It isn't, but then again your data just isn't dry. You can use erb in
your fixtures ( <%= %>) if it's bothering you that much.
Fred
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home