Sha256: 6e2fb4c3a31b02f879cb9e14be3caf0918612f944dd42b2dd97b0982a86687a1

Contents?: true

Size: 569 Bytes

Versions: 20

Compression:

Stored size: 569 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

20 entries across 20 versions & 1 rubygems

Version Path
queue_dispatcher-1.2.0 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.19 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.18 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.17 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.16 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.15 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.14 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.12 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.11 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.10 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.9 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.8 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.7 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.6 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.5 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.4 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.3 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.2 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.1 lib/generators/queue_dispatcher/migration/templates/tasks.rb
queue_dispatcher-1.1.0 lib/generators/queue_dispatcher/migration/templates/tasks.rb