Skip to content

Commit

Permalink
create migration add_not_null_constrain_to_resume_columns_github_url_…
Browse files Browse the repository at this point in the history
…summary_skills_description
  • Loading branch information
chrtkv committed Dec 8, 2023
1 parent 031d6d1 commit b558f76
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class AddNotNullConstrainToResumeColumnsGithubUrlSummarySkillsDescription < ActiveRecord::Migration[7.0]
def change
change_column_null :resumes, :github_url, false
change_column_null :resumes, :summary, false
change_column_null :resumes, :skills_description, false
end
end
8 changes: 4 additions & 4 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_12_08_124808) do
ActiveRecord::Schema[7.0].define(version: 2023_12_08_125741) do
create_table "career_items", force: :cascade do |t|
t.integer "order"
t.integer "career_id", null: false
Expand Down Expand Up @@ -213,9 +213,9 @@
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "url"
t.text "summary"
t.text "skills_description"
t.string "github_url"
t.text "summary", null: false
t.text "skills_description", null: false
t.string "github_url", null: false
t.text "awards_description"
t.string "english_fluency"
t.integer "impressions_count", default: 0
Expand Down

0 comments on commit b558f76

Please sign in to comment.