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