Sha256: 3bf48da5f11424afa6a5efdfbdbb57cd82979ef688e235675fd8d5f7ed20bfd3
Contents?: true
Size: 783 Bytes
Versions: 8
Compression:
Stored size: 783 Bytes
Contents
# encoding: UTF-8 namespace :iqvoc_compound_forms do namespace :db do desc "Migrate the database through scripts in db/migrate and update db/schema.rb by invoking db:schema:dump. Target specific version with VERSION=x. Turn off output with VERBOSE=false." task :migrate => :environment do ActiveRecord::Migration.verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true ActiveRecord::Migrator.migrate(Iqvoc::CompoundForms::Engine.find_root_with_flag("db").join('db/migrate'), ENV["VERSION"] ? ENV["VERSION"].to_i : nil) Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby end desc "Load seeds (task is idempotent)" task :seed => :environment do Iqvoc::CompoundForms::Engine.load_seed end end end
Version data entries
8 entries across 8 versions & 1 rubygems