class CreateSidekiqPublisherJobs
Public Instance Methods
change()
click to toggle source
# 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