Sha256: 08f1de8293d0852c36dc74a9a2da5ab575e76c6e41d11abcce002d40a5460c65

Contents?: true

Size: 537 Bytes

Versions: 1

Compression:

Stored size: 537 Bytes

Contents

# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

require 'rubocop/rake_task'

RuboCop::RakeTask.new

task default: %i[spec rubocop]

namespace :your_gem_name do
  desc "Copies the migration to the application's db/migrate directory"
  task install_migrations: :environment do
    ActiveRecord::Migrator.migrations_paths << File.expand_path('db/migrate', __dir__)
    ActiveRecord::MigrationContext.new(ActiveRecord::Migrator.migrations_paths).migrate
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
biometric-0.1.0 Rakefile