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.25.1 db/migrate/20110207200324_add_separated_entry_times.rb
appstats-0.25.0 db/migrate/20110207200324_add_separated_entry_times.rb
appstats-0.24.0 db/migrate/20110207200324_add_separated_entry_times.rb
appstats-0.23.5 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.23.4 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.23.3 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.23.2 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.23.1 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.23.0 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.22.6 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.22.5 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.22.4 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.22.3 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.22.2 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.22.1 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.22.0 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.21.3 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.21.2 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.21.1 db/migrations/20110207200324_add_separated_entry_times.rb
appstats-0.20.12 db/migrations/20110207200324_add_separated_entry_times.rb