Sha256: 0317a8e4a3a31d8ac767cf1e6a7c0acd5dcb5698d38a0b146e8f864e2baa8c8e

Contents?: true

Size: 187 Bytes

Versions: 4

Compression:

Stored size: 187 Bytes

Contents

class AddUserIdToBlogPosts < ActiveRecord::Migration
  def self.up
    add_column :blog_posts, :user_id, :integer
  end

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

Version data entries

4 entries across 3 versions & 1 rubygems

Version Path
admin_assistant-2.1.0 rails_3_0/db/migrate/20090307225750_add_user_id_to_blog_posts.rb
admin_assistant-2.0.1 rails_2_test/db/migrate/20090307225750_add_user_id_to_blog_posts.rb
admin_assistant-2.0.1 rails_3_test/db/migrate/20090307225750_add_user_id_to_blog_posts.rb
admin_assistant-1.0.1 test_rails_app/db/migrate/20090307225750_add_user_id_to_blog_posts.rb