Sha256: ff0319708643cef05edae846721a4b1ed0a7c0a340352d99941f2e5de7d13d51

Contents?: true

Size: 494 Bytes

Versions: 6

Compression:

Stored size: 494 Bytes

Contents

require 'bundler/gem_tasks'
require 'rubocop/rake_task'
require 'sequel'

RuboCop::RakeTask.new

namespace :db do
  db = Sequel.connect(ENV.fetch('DATABASE_URL', 'sqlite://'))

  desc 'migrate the database to the latest version'
  task :migrate do
    require 'clockwork_database_events'
    ClockworkDatabaseEvents.migrate(db)
  end

  desc 'seed the database with frequencies'
  task seed: :migrate do
    require 'clockwork_database_events/models'
    ClockworkDatabaseEvents.seed
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
clockwork_database_events-0.2.6 Rakefile
clockwork_database_events-0.2.5 Rakefile
clockwork_database_events-0.2.4 Rakefile
clockwork_database_events-0.2.3 Rakefile
clockwork_database_events-0.2.1 Rakefile
clockwork_database_events-0.2.0 Rakefile