Advertisement
Guest User

Untitled

a guest
May 9th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.57 KB | None | 0 0
  1. RR::Initializer::run do |config|
  2.   config.left = {
  3.     :adapter  => 'postgresql', # or 'mysql'
  4.     :database => 'SCOTT',
  5.     :username => 'scott',
  6.     :password => 'tiger',
  7.     :host     => '172.16.1.1'
  8.   }
  9.  
  10.   config.right = {
  11.     :adapter  => 'postgresql',
  12.     :database => 'SCOTT',
  13.     :username => 'scott',
  14.     :password => 'tiger',
  15.     :host     => '172.16.1.2'
  16.   }
  17.  
  18.   config.include_tables 'dept'
  19.   config.include_tables /^e/ # regexp matching all tables starting with e
  20.   # config.include_tables /./ # regexp matching all tables in the database
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement