Sha256: d74641ce2b18ed8004631b57a283b57dcf2eb2bba0503a75143a2295edfa7aab

Contents?: true

Size: 328 Bytes

Versions: 6

Compression:

Stored size: 328 Bytes

Contents

class CreateStatisticCounters < ActiveRecord::Migration
  def self.up
    create_table :statistic_counters do |t|
      t.string :type
      t.date :date
      t.integer :counter,
        :default => 1
      t.belongs_to :element, :polymorphic => true
    end
  end

  def self.down
    drop_table :statistic_counters
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
forgeos_core-1.9.5.rc2 db/migrate/20091009134919_create_statistic_counters.rb
forgeos_core-1.9.5.rc1 db/migrate/20091009134919_create_statistic_counters.rb
forgeos_core-1.9.4 db/migrate/20091009134919_create_statistic_counters.rb
forgeos_core-1.9.3 db/migrate/20091009134919_create_statistic_counters.rb
forgeos_core-1.9.2 db/migrate/20091009134919_create_statistic_counters.rb
forgeos_core-1.9.1 db/migrate/20091009134919_create_statistic_counters.rb