Sha256: d9845a8d2c1ff10e6bb816289745b11c0ea80c69d9cb90d4268d6541c573c1dc
Contents?: true
Size: 595 Bytes
Versions: 1
Compression:
Stored size: 595 Bytes
Contents
namespace :super_auth do desc "Run the super_auth database migrations" task migrate: :environment do # TODO: Make this work properly without auto applying migrations, which is silly # # raise "ENV variable SUPER_AUTH_DATABASE_URL is not set" if ENV['SUPER_AUTH_DATABASE_URL'].nil? || ENV['SUPER_AUTH_DATABASE_URL'].empty? # Sequel::Model.db = Sequel.connect(ENV['SUPER_AUTH_DATABASE_URL']) # Sequel.extension :migration # binding.irb # path = Pathname.new(__FILE__).parent.parent.join("db", "migrate") # Sequel::Migrator.run(Sequel::Model.db, path) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
super_auth-0.1.4 | lib/tasks/super_auth_tasks.rake |