Sha256: 46d693d07a0a6bf69f7563bcf878623bc27355c5debc5f38084b22187cd27684
Contents?: true
Size: 525 Bytes
Versions: 1
Compression:
Stored size: 525 Bytes
Contents
require 'bundler/gem_tasks' namespace :db do desc 'migrate the database to the latest version' task :migrate do require 'sequel' Sequel.extension :migration DB = Sequel.connect(ENV.fetch('DATABASE_URL', 'sqlite://')) Sequel::Migrator.run(DB, 'db/migrations') end desc 'seed the database with frequencies' task seed: :migrate do require 'clockwork_database_events' [:second, :minute, :hour, :day, :week, :month].each do |period| FrequencyPeriod.create(name: period) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clockwork_database_events-0.1.0 | Rakefile |