Advertisement
Guest User

Untitled

a guest
Mar 13th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2. require_relative 'boot'
  3.  
  4. db_config = {
  5. name: 'rom_app_development',
  6. host: 'db',
  7. user: 'root',
  8. password: '',
  9. port: 3306,
  10. encoding: 'utf8mb4'
  11. }
  12. configuration = ROM::Configuration.new("mysql2:///#{db_config[:name]}", db_config)
  13. MAIN_CONTAINER = ROM.container(configuration)
  14.  
  15. Pry.start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement