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.20.11 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.20.10 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.20.9 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.20.8 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.20.7 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.20.6 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.20.2 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.20.1 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.20.0 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.19.7 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.19.6 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.19.2 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.19.1 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.19.0 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.18.0 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.17.5 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.17.4 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.17.3 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.17.2 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.17.1 db/migrations/20110207200324_add_separated_entry_times.rb