You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
352B

  1. class CreateAnalyses < ActiveRecord::Migration[5.2]
  2. def change
  3. create_table :analyses, id: :uuid do |t|
  4. t.string :service, null: false
  5. t.string :host, null: false
  6. t.integer :port
  7. t.boolean :pending, null: false, default: true
  8. t.jsonb :result
  9. t.timestamps
  10. end
  11. add_index :analyses, %i[service host port], unique: true
  12. end
  13. end