Sha256: e57abad77af91ceb24fcb3e2e25da17aa5d960e709556947c0e750cfa1884d28

Contents?: true

Size: 1.17 KB

Versions: 9

Compression:

Stored size: 1.17 KB

Contents

# WontoMedia - a wontology web application
# Copyright (C) 2010 - Glen E. Ivey
#    www.wontology.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version
# 3 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program in the file COPYING and/or LICENSE.  If not,
# see <http://www.gnu.org/licenses/>.


class AddTimestampColumns < ActiveRecord::Migration
  def self.up
    add_column :items, :created_at, :datetime
    add_column :items, :updated_at, :datetime
    add_column :connections, :created_at, :datetime
    add_column :connections, :updated_at, :datetime
  end

  def self.down
    remove_column :items, :created_at
    remove_column :items, :updated_at
    remove_column :connections, :created_at
    remove_column :connections, :updated_at
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wontomedia-1.0.7 db/migrate/20100321042343_add_timestamp_columns.rb
wontomedia-1.0.6 db/migrate/20100321042343_add_timestamp_columns.rb
wontomedia-1.0.5 db/migrate/20100321042343_add_timestamp_columns.rb
wontomedia-1.0.4 db/migrate/20100321042343_add_timestamp_columns.rb
wontomedia-1.0.2 db/migrate/20100321042343_add_timestamp_columns.rb
wontomedia-1.0.1 db/migrate/20100321042343_add_timestamp_columns.rb
wontomedia-1.0.0 db/migrate/20100321042343_add_timestamp_columns.rb
wontomedia-0.2.1 db/migrate/20100321042343_add_timestamp_columns.rb
wontomedia-0.2.0 db/migrate/20100321042343_add_timestamp_columns.rb