SHARE
TWEET

my cruby code

a guest Feb 4th, 2016 36 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top