Commit 16b03b5f authored by Pawel Chojnacki's avatar Pawel Chojnacki

Initial model

parent 83c68ad5
class PrometheusQuery < ActiveRecord::Base
belongs_to :project
end
class CreatePrometheusQueries < ActiveRecord::Migration
def change
create_table :prometheus_queries do |t|
t.references :project, index: true, foreign_key: true
t.string :title
t.string :query
t.string :y_label
t.string :unit
t.string :legend
t.timestamps null: false
end
end
end
require 'rails_helper'
RSpec.describe PrometheusQuery, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment