forgeplus/db/migrate/20200518081445_create_mirro...

13 lines
433 B
Ruby
Raw Normal View History

2020-05-18 18:03:36 +08:00
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