Skip to content

Instantly share code, notes, and snippets.

@waynerobinson
Created October 30, 2012 03:00
Show Gist options
  • Save waynerobinson/3978061 to your computer and use it in GitHub Desktop.
Save waynerobinson/3978061 to your computer and use it in GitHub Desktop.
module MTData
class MTDataConnection < ActiveRecord::Base
establish_connection "mtdata"
end
module Perth
class Place < MTDataConnection
self.table_name = "[Perth].[dbo].[Place]"
end
end
module Brisbane
class Place < MTDataConnection
self.table_name = "[Brisbane].[dbo].[Place]"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment