mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
Log once off jobs and enqueue on db:migrate
This commit is contained in:
10
db/migrate/20160407180149_create_onceoff_logs.rb
Normal file
10
db/migrate/20160407180149_create_onceoff_logs.rb
Normal file
@ -0,0 +1,10 @@
|
||||
class CreateOnceoffLogs < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :onceoff_logs do |t|
|
||||
t.string :job_name
|
||||
t.timestamps null: false
|
||||
end
|
||||
|
||||
add_index :onceoff_logs, :job_name
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user