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