Sha256: b927b645f1d98fa11e6b9bdbf31da0b74f515c346ae03b23c5a5d61c5f61bafd

Contents?: true

Size: 479 Bytes

Versions: 26

Compression:

Stored size: 479 Bytes

Contents

class CreateTaskDependencies < ActiveRecord::Migration
  def self.up
    create_table "<%= options[:task_dependencies_table_name] %>" do |t|
      t.integer :task_id
      t.integer :dependent_task_id

      t.timestamps
    end
    add_index "<%= options[:task_dependencies_table_name] %>", :task_id
    add_index "<%= options[:task_dependencies_table_name] %>", :dependent_task_id
  end

  def self.down
    drop_table "<%= options[:task_dependencies_table_name] %>"
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
queue_dispatcher-2.5.3 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-2.3.0 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-2.1.0 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.5.1 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.3.1 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.3.0 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.2.0 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.1.19 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.1.18 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.1.17 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.1.16 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.1.15 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.1.14 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.1.12 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.1.11 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.1.10 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.1.9 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.1.8 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.1.7 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb
queue_dispatcher-1.1.6 lib/generators/queue_dispatcher/migration/templates/task_dependencies.rb