Sha256: 0844f1815d99d34c7440ad8c85bf30322b326a3a3d3fca15f77d2c92abc1dbcf
Contents?: true
Size: 923 Bytes
Versions: 2
Compression:
Stored size: 923 Bytes
Contents
class CreateBestBoyReports < ActiveRecord::Migration[5.1] def change create_table :best_boy_day_reports do |t| t.string :owner_type t.string :event t.string :event_source t.integer :month_report_id t.integer :occurrences t.timestamps end add_index :best_boy_day_reports, :created_at add_index :best_boy_day_reports, :month_report_id add_index :best_boy_day_reports, [:owner_type, :event, :event_source], name: "index_best_boy_day_reports_aggregated_columns" create_table :best_boy_month_reports do |t| t.string :owner_type t.string :event t.string :event_source t.integer :occurrences, default: 0 t.timestamps end add_index :best_boy_month_reports, :created_at add_index :best_boy_month_reports, [:owner_type, :event, :event_source], name: "index_best_boy_month_reports_aggregated_columns" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
best_boy-3.5.0 | db/migrate/20150610155251_create_best_boy_reports.rb |
best_boy-3.4.1 | db/migrate/20150610155251_create_best_boy_reports.rb |