discourse/db/migrate/20120523201329_add_featured...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
506 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class AddFeaturedToForumThreads < ActiveRecord::Migration[4.2]
2013-02-05 14:16:51 -05:00
def up
add_column :forum_threads, :featured_user1_id, :integer, null: true
add_column :forum_threads, :featured_user2_id, :integer, null: true
add_column :forum_threads, :featured_user3_id, :integer, null: true
end
def down
remove_column :forum_threads, :featured_user1_id
remove_column :forum_threads, :featured_user2_id
remove_column :forum_threads, :featured_user3_id
end
end