lib/tasks/my.rake in borda-0.0.6 vs lib/tasks/my.rake in borda-0.0.7

- old
+ new

@@ -2,6 +2,15 @@ desc 'my first task' task :ivanovna do puts 'hello from pizda ivanovna' end + task :oyaeby do + ActiveRecord::Migration.verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true + migrate_path = 'db/migrate' + if Rails::configuration.gems.map(&:name).include? :borda + migrate_path = Gem.searcher.find('borda').full_gem_path + '/db/migrate' + end + ActiveRecord::Migrator.migrate("db/migrate/", ENV["VERSION"] ? ENV["VERSION"].to_i : nil) + end + end \ No newline at end of file