Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- require_relative 'boot'
- db_config = {
- name: 'rom_app_development',
- host: 'db',
- user: 'root',
- password: '',
- port: 3306,
- encoding: 'utf8mb4'
- }
- configuration = ROM::Configuration.new("mysql2:///#{db_config[:name]}", db_config)
- MAIN_CONTAINER = ROM.container(configuration)
- Pry.start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement