hi,

You can use Transaction functionality for the same
Eg:
User.transaction do
....
....
end
if anything fails in between, everything will be reverted

-NAYAK

On Wed, Jan 7, 2009 at 10:06 AM, anton effendi <[email protected]> wrote:

> Hai guys.
> I have problem in Rails.. Can u help me? please.....
>
> My problem:
>
> I want to make code for maintenance database... I want like migration...
> can change to another version...
> so when I import some data, I must revert to before version..
>
> example:
> file import 1 --> import to database... version 1
>  user1 add some data
> file import 2 --> import to database... version 2
>  user2 add some data
> file import 3 --> import to database... version 3
>
> if file import 3 wrong data...., then I can change to version2 with some
> data form user2.(last data base before file import3 exceuted)
>
>
> do anybody know about it?? if must use plugin.. what are they??
>
>
> Thank you.
>
>
> --
> Wu You Duan
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to