Sha256: 6981505acb2808c6ab56df16f3d0868a9dc3472ed7e7dc1f839929cedbb950f5
Contents?: true
Size: 613 Bytes
Versions: 60
Compression:
Stored size: 613 Bytes
Contents
class AddAppstatsEntriesWeekAndQuarter < ActiveRecord::Migration def self.up add_column :appstats_entries, :week, :integer add_column :appstats_entries, :quarter, :integer add_index :appstats_entries, [:year,:week], :name => "index_entries_by_week" add_index :appstats_entries, [:year,:quarter], :name => "index_entries_by_quarter" end def self.down remove_column :appstats_entries, :week remove_column :appstats_entries, :quarter remove_index :appstats_entries, :name => "index_entries_by_week" remove_index :appstats_entries, :name => "index_entries_by_quarter" end end
Version data entries
60 entries across 60 versions & 1 rubygems