Sha256: 7ab9299f7bce9618a471e11ca62bd3a7eca34afcdd3e6fce05ef2cd86810dcd6

Contents?: true

Size: 352 Bytes

Versions: 15

Compression:

Stored size: 352 Bytes

Contents

namespace :db do
  task :migrate do
    ERDGraph::Migration.update_model
  end

  namespace :migrate do
    [:change, :up, :down, :reset, :redo].each do |t|
      task t do
        ERDGraph::Migration.update_model
      end
    end
  end
end

module ERDGraph
  class Migration
    def self.update_model
      Rake::Task['erd'].invoke
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
rails-erd-1.7.2 lib/tasks/auto_generate_diagram.rake
rails-erd-1.7.1 lib/tasks/auto_generate_diagram.rake
rails-erd-1.7.0 lib/tasks/auto_generate_diagram.rake
rails-erd-1.6.1 lib/tasks/auto_generate_diagram.rake
rails-erd-1.6.0 lib/tasks/auto_generate_diagram.rake
rails-erd-1.5.2 lib/tasks/auto_generate_diagram.rake
rails-erd-1.5.1 lib/tasks/auto_generate_diagram.rake
rails-erd-1.5.0 lib/tasks/auto_generate_diagram.rake
rails-erd-1.4.7 lib/tasks/auto_generate_diagram.rake
rails-erd-1.4.6 lib/tasks/auto_generate_diagram.rake
rails-erd-1.4.5 lib/tasks/auto_generate_diagram.rake
jw-rails-erd-1.4.6 lib/tasks/auto_generate_diagram.rake
jw-rails-erd-1.4.5 lib/tasks/auto_generate_diagram.rake
rails-erd-1.4.4 lib/tasks/auto_generate_diagram.rake
rails-erd-1.4.3 lib/tasks/auto_generate_diagram.rake