Loading db/migrate/20161015174300_remove_empty_pod.rb 0 → 100644 +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 db/schema.rb +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 Loading Loading
db/migrate/20161015174300_remove_empty_pod.rb 0 → 100644 +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
db/schema.rb +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 Loading