mailinglist.rb/bin/db_migrate
Arthur POULET 5b867e3d3e
Improve DB migrations
Previous db migration was a custom home-made system.
Now we use proper Sequel migrations.
2022-11-26 10:47:15 +01:00

8 lines
172 B
Ruby
Executable File

#!/usr/bin/env ruby
$LOAD_PATH << File.join(Dir.pwd, "lib")
require "app"
sequel_command = "bundle exec sequel -E -m db/migrations #{ENV['DB_URL']}"
exec(sequel_command)