mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-25 00:29:30 -05:00
32ff6c264a
Several migrations were failing when running db:migrate at the initial release version from an empty database. These changes took out statements that were causing migrations to fail, usually because of references to models that no longer exist.
13 lines
470 B
Ruby
13 lines
470 B
Ruby
class AddFeaturedToForumThreads < ActiveRecord::Migration
|
|
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
|