Unverified Commit 4480f59e authored by Benjamin Neff's avatar Benjamin Neff Committed by Dennis Schubert
Browse files

Remove empty pod and make pod host NOT NULL

parent f9081267
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
class RemoveEmptyPod < ActiveRecord::Migration
  def up
    Pod.delete_all("host IS NULL")

    change_column :pods, :host, :string, null: false
  end

  def down
    change_column :pods, :host, :string, null: true
  end
end
+2 −2
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20160906225138) do
ActiveRecord::Schema.define(version: 20161015174300) do

  create_table "account_deletions", force: :cascade do |t|
    t.string   "diaspora_handle", limit: 255
@@ -358,7 +358,7 @@ ActiveRecord::Schema.define(version: 20160906225138) do
  add_index "photos", ["status_message_guid"], name: "index_photos_on_status_message_guid", length: {"status_message_guid"=>191}, using: :btree

  create_table "pods", force: :cascade do |t|
    t.string   "host",          limit: 255
    t.string   "host",          limit: 255,                                 null: false
    t.boolean  "ssl"
    t.datetime "created_at",                                                null: false
    t.datetime "updated_at",                                                null: false