Guest User

my cruby code

a guest
Feb 4th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. require 'prawn'
  2. require 'active_record'
  3. require 'pg'
  4.  
  5. ActiveRecord::Base.establish_connection(
  6. adapter: 'postgresql',
  7. host: 'localhost',
  8. database: 'sample',
  9. username: 'postgres',
  10. password: 'axiom'
  11. )
  12.  
  13. ActiveRecord::Schema.define do
  14. create_table :xmldata, force: true do |t|
  15. t.text :xmlstr
  16. end
  17. end
Add Comment
Please, Sign In to add comment