ADD model mirror
This commit is contained in:
parent
245a377be9
commit
fbcd21e31e
|
@ -0,0 +1,12 @@
|
|||
class CreateMirrors < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :mirrors do |t|
|
||||
t.integer :repo_id, foreign_key: true
|
||||
t.integer :status, default: 0, null: false, comment: "0 - succeeded, 1 - waiting, 2 - failed"
|
||||
t.integer :interval, comment: "mirror interval with unix time"
|
||||
t.datetime :next_update_time, comment: "next update mirror time, for datetime"
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue