mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-25 00:29:30 -05:00
9 lines
290 B
Ruby
9 lines
290 B
Ruby
class RenameInvisible < ActiveRecord::Migration
|
|
def change
|
|
|
|
add_column :forum_threads, :visible, :boolean, default: true, null: false
|
|
execute "UPDATE forum_threads SET visible = CASE WHEN invisible THEN false ELSE true END"
|
|
remove_column :forum_threads, :invisible
|
|
|
|
end
|
|
end
|