Skip to content

Commit

Permalink
Change column name university_remark
Browse files Browse the repository at this point in the history
  • Loading branch information
zw963 committed May 28, 2024
1 parent e787e97 commit 801b29f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/migrations/20240526085117_create_chong_wen_baos.cr
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class CreateChongWenBaos::V20240526085117 < Avram::Migrator::Migration::V1
add wen_2021 : Bool, default: false, index: true
add wen_2020 : Bool, default: false, index: true

add user_university_remark : String?, index: true
add university_remark : String?, index: true

add_belongs_to user : User, on_delete: :cascade
add_belongs_to university : University, on_delete: :cascade
Expand Down
2 changes: 1 addition & 1 deletion src/models/chong_wen_bao.cr
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ChongWenBao < BaseModel
column chong_2020 : Bool = false
column wen_2020 : Bool = false
column bao_2020 : Bool = false
column user_university_remark : String?
column university_remark : String?

belongs_to user : User
belongs_to university : University
Expand Down

0 comments on commit 801b29f

Please sign in to comment.