aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/2_add_user_id_to_blog_posts.rb
blob: cd6252481a38f7d6a3e73c82471b86caa2a93a00 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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