Class: CreateSidekiqPublisherJobs

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/sidekiq_publisher/templates/create_sidekiq_publisher_jobs.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/generators/sidekiq_publisher/templates/create_sidekiq_publisher_jobs.rb', line 4

def change
  # rubocop:disable Rails/CreateTableWithTimestamps
  create_table(:sidekiq_publisher_jobs, id: :bigserial) do |t|
    t.string :job_id, null: false
    t.string :job_class, null: false
    t.string :queue
    t.string :wrapped
    t.json :args, null: false
    t.float :run_at
    t.timestamp :published_at, index: true
    t.timestamp :created_at, null: false
  end
  # rubocop:enable Rails/CreateTableWithTimestamps
end