ADD model mirror

This commit is contained in:
Jasder 2020-05-18 18:03:36 +08:00
parent 245a377be9
commit fbcd21e31e
1 changed files with 12 additions and 0 deletions

View File

@ -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