sutty/db/migrate/20190725185427_create_build_stats.rb

16 lines
361 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2019-07-26 01:11:01 +00:00
# Crea la tabla de estadísticas de compilación
class CreateBuildStats < ActiveRecord::Migration[5.2]
def change
create_table :build_stats do |t|
t.timestamps
t.belongs_to :deploy, index: true
t.integer :bytes
t.float :seconds
t.string :action, null: false
t.text :log
end
end
end