mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-07 22:33:56 -05:00
14 lines
267 B
Ruby
14 lines
267 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RemoveEmptyPod < ActiveRecord::Migration[4.2]
|
|
def up
|
|
Pod.where("host IS NULL").delete_all
|
|
|
|
change_column :pods, :host, :string, null: false
|
|
end
|
|
|
|
def down
|
|
change_column :pods, :host, :string, null: true
|
|
end
|
|
end
|