diff --git a/db/migrate/20171018034551_drop_default_tag_name.rb b/db/migrate/20171018034551_drop_default_tag_name.rb new file mode 100644 index 0000000000..f28b891f5b --- /dev/null +++ b/db/migrate/20171018034551_drop_default_tag_name.rb @@ -0,0 +1,5 @@ +class DropDefaultTagName < ActiveRecord::Migration[5.1] + def change + change_column_default(:tags, :tag, from: '', to: nil) + end +end diff --git a/db/schema.rb b/db/schema.rb index f42c03989b..d231ff72fd 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,9 +10,9 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20170713195446) do +ActiveRecord::Schema.define(version: 20171018034551) do - create_table "comments", id: :integer, unsigned: true, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| + create_table "comments", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| t.datetime "created_at", null: false t.datetime "updated_at" t.string "short_id", limit: 10, default: "", null: false @@ -181,7 +181,7 @@ end create_table "tags", id: :integer, unsigned: true, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| - t.string "tag", limit: 25, default: "", null: false + t.string "tag", limit: 25, null: false t.string "description", limit: 100 t.boolean "privileged", default: false t.boolean "is_media", default: false