13 lines
311 B
Ruby
13 lines
311 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
require "dotenv/load" if ENV.fetch("RACK_ENV", "development") == "development"
|
|
require_relative "../lib/database"
|
|
|
|
Sequel.extension :migration
|
|
|
|
migrations_path = File.expand_path("../db/migrations", __dir__)
|
|
|
|
Sequel::Migrator.run(DB, migrations_path)
|
|
|
|
puts "Database schema is up to date."
|