Sha256: b45fe1ec0d8540f464aa74866db74788679ecd6bf8679aeb79920edcdd0d92f3
Contents?: true
Size: 1.1 KB
Versions: 9
Compression:
Stored size: 1.1 KB
Contents
class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %> def change create_table :rails_server_monitor_server_groups do |t| t.string :name, null: false, index: { unique: true } t.bigint :rails_server_monitor_servers, null: false, default: 0 end create_table :rails_server_monitor_servers do |t| t.string :hostname, index: true t.datetime :last_seen_at t.string :custom_name t.text :custom_description t.text :system_information t.references :rails_server_monitor_server_group, null: true, foreign_key: true, index: { name: "rails_server_monitor_server_on_group"} t.timestamps end create_table :rails_server_monitor_server_snapshots do |t| t.float :cpu_usage_percentage t.float :ram_usage_percentage t.float :hdd_usage_percentage t.text :ram_stats t.text :hdd_stats t.text :network_stats t.references :rails_server_monitor_server, null: false, foreign_key: true, index: { name: "rails_server_monitor_snapshots_on_server"} t.timestamp :created_at, index: true end end end
Version data entries
9 entries across 9 versions & 1 rubygems