Skip to content

Commit

Permalink
Merge pull request #96 from FaxriddinMaxmadiyorov/issue_82
Browse files Browse the repository at this point in the history
added status enum to Resume model
  • Loading branch information
XaoGao authored Sep 30, 2023
2 parents 366b149 + e65c194 commit cb4764e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/models/resume.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@
class Resume < ApplicationRecord
belongs_to :user
has_rich_text :description

enum :status, %i[open hidden irrelevant]
end
5 changes: 5 additions & 0 deletions db/migrate/20230928043121_add_status_to_resumes.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddStatusToResumes < ActiveRecord::Migration[7.0]
def change
add_column :resumes, :status, :integer, default: 0
end
end
3 changes: 2 additions & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cb4764e

Please sign in to comment.