Sha256: 8b6482ecdf5e8f7925cd0c5d03681702c618961f88162a28d5f01d2b4d2e2dd7

Contents?: true

Size: 468 Bytes

Versions: 10

Compression:

Stored size: 468 Bytes

Contents

class AddAnonymousCommentingFields < ActiveRecord::Migration
  def self.up
    add_column :comments, :author_name, :string
    add_column :comments, :author_email, :string
    add_column :comments, :author_url, :string
    add_column :comments, :author_ip, :string
  end
  
  def self.down
    remove_column :comments, :author_name
    remove_column :comments, :author_email
    remove_column :comments, :author_url
    remove_column :comments, :author_ip
  end  
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
community_engine-3.2.0 db/migrate/058_add_anonymous_commenting_fields.rb
community_engine-3.0.0 db/migrate/058_add_anonymous_commenting_fields.rb
community_engine-2.3.2 db/migrate/058_add_anonymous_commenting_fields.rb
community_engine-2.3.1 db/migrate/058_add_anonymous_commenting_fields.rb
community_engine-2.3.0 db/migrate/058_add_anonymous_commenting_fields.rb
community_engine-2.1.0 db/migrate/058_add_anonymous_commenting_fields.rb
community_engine-2.0.0 db/migrate/058_add_anonymous_commenting_fields.rb
community_engine-2.0.0.beta3 db/migrate/058_add_anonymous_commenting_fields.rb
community_engine-2.0.0.beta2 db/migrate/058_add_anonymous_commenting_fields.rb
community_engine-2.0.0.beta1 db/migrate/058_add_anonymous_commenting_fields.rb