Topic: reading a serialised object from the database

However I am successful in storing them but I can view it as a serialized file object as shown below

--- - !ruby/object:File {}

This file object contains the name, content-type,content-size of the file attached . So, how can I deserialize it and store the attachments in another table that has 1-M associations.My application uses rails 2.3.11