Sha256: ad5bb6b8148a307595f3a674df3a36285cee2d3786d4969778d8c6c998985567

Contents?: true

Size: 382 Bytes

Versions: 6

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

puts "Requiring mimi/db, mimi/logger"
require 'mimi/db'
require 'mimi/logger'
puts "DONE"

CONFIG = {
  db_adapter: 'sqlite3',
  db_database: '../tmp/my_app_db',
  db_log_level: :debug
}.freeze

Mimi::DB.configure(CONFIG)
Mimi::DB.start

require_relative 'my_model'

Mimi::DB.create_if_not_exist! # creates configured database
Mimi::DB.update_schema!

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mimi-db-0.3.5 examples/my_app.rb
mimi-db-0.3.4 examples/my_app.rb
mimi-db-0.3.3 examples/my_app.rb
mimi-db-0.3.2 examples/my_app.rb
mimi-db-0.3.1 examples/my_app.rb
mimi-db-0.3.0 examples/my_app.rb