Sha256: f14cbe6d9914538ea8debd0becb8940b1aee73eeac9ea85f28b2fd1836de7ecc

Contents?: true

Size: 384 Bytes

Versions: 4

Compression:

Stored size: 384 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration
  def change
    create_table :<%= table_name %>, {id: false, options: "ENGINE=QUEUE"} do |t|
      t.string :job_id, null: false
<% attributes.each do |attribute| -%>
      t.<%= attribute.type %> :<%= attribute.name %><%= attribute.inject_options %>
<% end -%>
      t.datetime :enqueued_at, null: false
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shinq-0.4.0 lib/generators/shinq/worker/templates/create_table_migration.erb
shinq-0.3.0 lib/generators/shinq/worker/templates/create_table_migration.erb
shinq-0.2.0 lib/generators/shinq/worker/templates/create_table_migration.erb
shinq-0.1.0 lib/generators/shinq/worker/templates/create_table_migration.erb