Sha256: 8279479e6265c8dfb6ac6eeeb043af888c31421557c859622d934b247c30d094

Contents?: true

Size: 644 Bytes

Versions: 80

Compression:

Stored size: 644 Bytes

Contents

class AddSeparatedEntryTimes < ActiveRecord::Migration
  def self.up
    add_column :appstats_entries, :year, :int
    add_column :appstats_entries, :month, :int
    add_column :appstats_entries, :day, :int
    add_column :appstats_entries, :hour, :int
    add_column :appstats_entries, :minute, :int
    add_column :appstats_entries, :second, :int
  end

  def self.down
    remove_column :appstats_entries, :year
    remove_column :appstats_entries, :month
    remove_column :appstats_entries, :day
    remove_column :appstats_entries, :hour
    remove_column :appstats_entries, :minute
    remove_column :appstats_entries, :second
  end
end

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
appstats-0.17.0 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.16.7 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.16.6 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.16.5 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.16.4 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.16.3 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.16.2 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.16.1 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.15.1 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.15.0 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.14.0 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.13.4 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.13.3 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.13.2 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.13.1 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.13.0 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.12.5 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.12.4 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.12.2 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.12.1 db/migrations/20110207200324_add_separated_entry_times.rb