Sha256: a7031fba6cb966c65baf6c0855dbfbbc2b9aa7244467fcee8246fd167ae7236a

Contents?: true

Size: 296 Bytes

Versions: 3

Compression:

Stored size: 296 Bytes

Contents

class Counters < ActiveRecord::Migration
  def self.up
    create_table :counters do |t|
      t.integer :counter
      t.integer :counter_last_day
      t.integer :counter_last_2_days
      t.string :counter_data, :limit => 2048
    end
  end

  def self.down
    drop_table :counters
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
periodic_counter-0.1.2 spec/db/migrate/001_counters.rb
periodic_counter-0.1.1 spec/db/migrate/001_counters.rb
periodic_counter-0.1.0 spec/db/migrate/001_counters.rb