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

Remove empty pod and make pod host NOT NULL

parent f9081267
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
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment