Sha256: 89d6f15653d2a552f78b35c4f8e18ce6b781636436c9bb6a3b0ccb6a2a943f67
Contents?: true
Size: 761 Bytes
Versions: 7
Compression:
Stored size: 761 Bytes
Contents
# encoding: UTF-8 namespace :iqvoc_skosxl 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::SKOSXL::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::SKOSXL::Engine.load_seed end end end
Version data entries
7 entries across 7 versions & 1 rubygems