Sha256: 4d91688ee280d80300be8175a2bac1e6388faf22f680f94fedf3c831c4c827a7

Contents?: true

Size: 926 Bytes

Versions: 38

Compression:

Stored size: 926 Bytes

Contents

class UpdatePerformanceHistoryTable < ActiveRecord::Migration<%= migration_version %>
  def self.up
    change_column :performance_history, :action, :integer
    rename_column :performance_history, :load_time_ms, :retrieve_plus_graph_load_time_ms
    add_column :performance_history, :retrieve_time_ms, :float, after: :size_bytes
    add_column :performance_history, :graph_load_time_ms, :float, after: :retrieve_time_ms
    add_column :performance_history, :action_time_ms, :float
    add_index :performance_history, :action
  end

  def self.down
    remove_index :performance_history, :action
    remove_column :performance_history, :action_time_ms
    remove_column :performance_history, :retrieve_time_ms
    remove_column :performance_history, :graph_load_time_ms
    rename_column :performance_history, :retrieve_plus_graph_load_time_ms, :load_time_ms
    change_column :performance_history, :action, :string
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
qa_server-8.0.1 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.9.2 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.9.1 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.9.0 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.8.0 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.7.1 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.7.0 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.6.0 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.5.1 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.5.0 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.4.0 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.3.0 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.2.1 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.2.0 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.1.3 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.1.2 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.1.1 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.1.0 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-7.0.0 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb
qa_server-6.2.0 lib/generators/qa_server/templates/db/migrate/20191007134527_update_performance_history_table.rb.erb