Sha256: 553faf4b3cae64f3bdbe9dae7467974744a848d959d8c7a941e8618551db1ac4
Contents?: true
Size: 794 Bytes
Versions: 4
Compression:
Stored size: 794 Bytes
Contents
require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts 'Run `bundle install` to install missing gems' exit e.status_code end <% if app_orm == 'activerecord' -%> load 'tasks/otr-activerecord.rake' OTR::ActiveRecord.db_dir = 'db' OTR::ActiveRecord.migrations_paths = ['db/migrations'] OTR::ActiveRecord.fixtures_path = 'test/fixtures' OTR::ActiveRecord.seed_file = 'seeds.rb' namespace :db do # Some db tasks require your app code to be loaded; they'll expect to find it here task :environment do ENV['RACK_ENV'] ||= 'development' require File.expand_path('config/environment', __dir__) end end <% end -%> #Load tasks Dir.glob('lib/tasks/*.rake').each { |task| load task }
Version data entries
4 entries across 4 versions & 1 rubygems