Sha256: 6f4f380e1ae47e22c008e972e1c33aca89199dcd33be27b2e8fa5c02afadbc46

Contents?: true

Size: 453 Bytes

Versions: 51

Compression:

Stored size: 453 Bytes

Contents

class CreateAppstatsSubResults < ActiveRecord::Migration
  def self.up
    create_table :appstats_sub_results do |t|
      t.integer :appstats_result_id
      t.string :context_filter
      t.integer :count
      t.float :ratio_of_total
      t.timestamps
    end
    
    add_index :appstats_sub_results, :context_filter
  end

  def self.down
    remove_index :appstats_sub_results, :context_filter
    
    drop_table :appstats_sub_results
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
appstats-0.17.0 db/migrations/20110301170947_create_appstats_sub_results.rb
appstats-0.16.7 db/migrations/20110301170947_create_appstats_sub_results.rb
appstats-0.16.6 db/migrations/20110301170947_create_appstats_sub_results.rb
appstats-0.16.5 db/migrations/20110301170947_create_appstats_sub_results.rb
appstats-0.16.4 db/migrations/20110301170947_create_appstats_sub_results.rb
appstats-0.16.3 db/migrations/20110301170947_create_appstats_sub_results.rb
appstats-0.16.2 db/migrations/20110301170947_create_appstats_sub_results.rb
appstats-0.16.1 db/migrations/20110301170947_create_appstats_sub_results.rb
appstats-0.15.1 db/migrations/20110301170947_create_appstats_sub_results.rb
appstats-0.15.0 db/migrations/20110301170947_create_appstats_sub_results.rb
appstats-0.14.0 db/migrations/20110301170947_create_appstats_sub_results.rb