Skip to content

Commit

Permalink
Drop tag name default
Browse files Browse the repository at this point in the history
  • Loading branch information
masongup committed Oct 18, 2017
1 parent 71edfdf commit bf340c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions db/migrate/20171018034551_drop_default_tag_name.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class DropDefaultTagName < ActiveRecord::Migration[5.1]
def change
change_column_default(:tags, :tag, from: '', to: nil)
end
end
6 changes: 3 additions & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bf340c3

Please sign in to comment.