Skip to content

Commit

Permalink
create migration add_not_null_constrain_column_name_to_resume
Browse files Browse the repository at this point in the history
  • Loading branch information
chrtkv committed Dec 8, 2023
1 parent 7a79f24 commit 031d6d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddNotNullConstrainColumnNameToResume < ActiveRecord::Migration[7.0]
def change
change_column_null :resumes, :name, false
end
end
4 changes: 2 additions & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2023_11_30_162228) do
ActiveRecord::Schema[7.0].define(version: 2023_12_08_124808) do
create_table "career_items", force: :cascade do |t|
t.integer "order"
t.integer "career_id", null: false
Expand Down Expand Up @@ -208,7 +208,7 @@

create_table "resumes", force: :cascade do |t|
t.string "state"
t.string "name"
t.string "name", null: false
t.integer "user_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
Expand Down

0 comments on commit 031d6d1

Please sign in to comment.