Sha256: 99fd2d805a7081f10a455ad49777668ec08a459d7181ea1429bdc3016ad23e59

Contents?: true

Size: 196 Bytes

Versions: 3

Compression:

Stored size: 196 Bytes

Contents

class AddUserReferenceToPost < ActiveRecord::Migration
  def self.up
    add_column :posts, :user_id, :integer, :default => nil
  end

  def self.down
    remove_column :posts, :user_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
transactionata-0.3.0 test/rails3/db/migrate/20110213220543_add_user_reference_to_post.rb
transactionata-0.2.0 test/rails3/db/migrate/20110213220543_add_user_reference_to_post.rb
transactionata-0.1.0 test/rails3/db/migrate/20110213220543_add_user_reference_to_post.rb