aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/6_add_custom_url_field_to_blog_posts.rb
blob: 5a8901ea05fa911e4d95eacb6a2fa905087ff1b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
class AddCustomUrlFieldToBlogPosts < ActiveRecord::Migration
  def self.up
    add_column :blog_posts, :custom_url, :string
  end

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