Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'active_record'
- ActiveRecord::Base.establish_connection(
- adapter: "oracle_enhanced",
- database: "",
- username: "",
- password: ""
- )
- class Documento < ActiveRecord::Base
- self.table_name = 'DOCUMENTO'
- end
- a = File.open("./xml.zip")
- Documento.create({:arquivo => a.read})
Add Comment
Please, Sign In to add comment