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.11.7 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.11.6 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.11.5 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.11.4 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.11.3 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.11.2 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.10.0 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.9.2 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.9.1 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.9.0 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.8.3 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.8.2 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.8.1 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.8.0 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.7.0 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.6.1 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.6.0 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.4.0 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.3.1 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.1.0 db/migrations/20110207200324_add_separated_entry_times.rb