Sha256: 8ede3c67483030d12347185cc6fc94f8b6afd0ef4c97da170d4c8f3821ee84e6

Contents?: true

Size: 567 Bytes

Versions: 6

Compression:

Stored size: 567 Bytes

Contents

class CreateTasks < ActiveRecord::Migration
  def self.up
    create_table "<%= options[:tasks_table_name] %>" do |t|
      t.text :target
      t.string :method_name
      t.text :args
      t.string :state
      t.integer :priority
      t.string :message
      t.integer :perc_finished
      t.string :remark
      t.text :output
      t.text :error_msg
      t.integer :task_queue_id

      t.timestamps
    end

    add_index "<%= options[:tasks_table_name] %>", :task_queue_id
  end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
queue_dispatcher-2.5.3 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-2.3.0 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-2.1.0 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.5.1 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.3.1 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.3.0 lib/generators/queue_dispatcher/migration/templates/tasks.rb