evodata/db/migrate/20211218150535_create_checks.rb

14 lines
267 B
Ruby
Raw Normal View History

2021-12-18 16:14:50 +01:00
class CreateChecks < ActiveRecord::Migration[7.0]
def change
create_table :checks do |t|
t.string :name
t.text :description
t.string :hostname
t.timestamps
end
add_index :checks, :name
add_index :checks, :hostname
end
end