21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-05-16 15:38:40 +02:00
chexpire/db/migrate/20180529092950_create_checks.rb
2018-05-30 16:58:30 +02:00

20 lines
518 B
Ruby

class CreateChecks < ActiveRecord::Migration[5.2]
def change
create_table :checks do |t|
t.references :user, foreign_key: true
t.integer :kind, null: false
t.string :domain, null: false
t.datetime :domain_created_at
t.datetime :domain_updated_at
t.datetime :domain_expire_at
t.datetime :last_run_at
t.datetime :last_success_at
t.string :vendor
t.string :comment
t.boolean :active, default: true, null: false
t.timestamps
end
end
end