Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
V
venjob
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 1
    • Issues 1
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 3
    • Merge Requests 3
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Xuan Trung Le
  • venjob
  • Merge Requests
  • !1

Merged
Opened Oct 02, 2017 by Xuan Trung Le@trunglx 
  • Report abuse
Report abuse

Create database

I have created db follow document (https://docs.google.com/spreadsheets/u/1/d/1Lf3KTGjaBN4qH4Q8e1nif03GdImteCfDp_1G_gZPDls/edit#gid=0), you can see db diagram at https://drive.google.com/file/d/0B6GfH1MD57e7RzBZZFZCSnZlek0/view.

  • Discussion 13
  • Commits 6
  • Changes 28
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Xuan Trung Le @trunglx

    added 1 commit

    • 5774f9b2 - Fix creating db

    Compare with previous version

    Oct 02, 2017

    added 1 commit

    • 5774f9b2 - Fix creating db

    Compare with previous version

    added 1 commit * 5774f9b2 - Fix creating db [Compare with previous version](https://gitlab.zigexn.vn/trunglx/venjob/merge_requests/1/diffs?diff_id=3652&start_sha=201393d4831c720ce18b1627a270aaae0996c418)
    Toggle commit list
  • Xuan Trung Le @trunglx

    added 1 commit

    • 1030295e - fix creating db

    Compare with previous version

    Oct 02, 2017

    added 1 commit

    • 1030295e - fix creating db

    Compare with previous version

    added 1 commit * 1030295e - fix creating db [Compare with previous version](https://gitlab.zigexn.vn/trunglx/venjob/merge_requests/1/diffs?diff_id=3653&start_sha=5774f9b2818943921969899189e9c574937ba419)
    Toggle commit list
  • Ba Toi Dang
    @toidb started a discussion on an old version of the diff Oct 02, 2017
    Last updated by Xuan Trung Le Oct 02, 2017
    app/models/user.rb 0 → 100644
    1 class User < ApplicationRecord
    2 has_many :apply_jobs
    3 has_many :jobs, through: :favorite_jobs
    • Ba Toi Dang @toidb commented Oct 02, 2017
      Master

      Có 2 dòng has_many :jobs, through: :favorite_jobs duplicate assoc rôi @trunglx check lại nhé.

      P/S: Kiểm tra những chỗ khác.

      Edited Oct 02, 2017 by Ba Toi Dang
      Có 2 dòng `has_many :jobs, through: :favorite_jobs` duplicate assoc rôi @trunglx check lại nhé. P/S: Kiểm tra những chỗ khác.
    • Xuan Trung Le @trunglx

      changed this line in version 4 of the diff

      Oct 02, 2017

      changed this line in version 4 of the diff

      changed this line in [version 4 of the diff](https://gitlab.zigexn.vn/trunglx/venjob/merge_requests/1/diffs?diff_id=3654&start_sha=1030295e4104d12b29af7f9c0fb0b3ae61dbe734#4ed0c03b53dbc8320da88e7887465514cd9e90a4_3_3)
      Toggle commit list
    • Xuan Trung Le @trunglx commented Oct 02, 2017
      Master

      Fixed.

      Fixed.
    Please register or sign in to reply
  • Ba Toi Dang
    @toidb started a discussion on an old version of the diff Oct 02, 2017
    Last updated by Xuan Trung Le Oct 02, 2017
    app/models/job.rb 0 → 100644
    1 class Job < ApplicationRecord
    2 belongs_to :city
    3 belongs_to :company
    4 has_many :apply_jobs
    5 has_many :users, through: :favorite_jobs
    6 has_many :favorite_jobs
    7 has_many :users, through: :favorite_jobs
    • Ba Toi Dang @toidb commented Oct 02, 2017
      Master

      Có 2 dòng has_many :users, through: :favorite_jobs duplicate assoc rôi @trunglx check lại nhé.

      P/S: Kiểm tra những chỗ khác.

      Có 2 dòng `has_many :users, through: :favorite_jobs` duplicate assoc rôi @trunglx check lại nhé. P/S: Kiểm tra những chỗ khác.
    • Xuan Trung Le @trunglx commented Oct 02, 2017
      Master

      fixed

      fixed
    • Ba Toi Dang @toidb commented Oct 02, 2017
      Master

      @trunglx has_many :users bị trùng tên assocation là không được nhé :).

      Tham khảo: http://guides.rubyonrails.org/association_basics.html

      @trunglx `has_many :users` bị trùng tên assocation là không được nhé :). Tham khảo: http://guides.rubyonrails.org/association_basics.html
    • Xuan Trung Le @trunglx

      changed this line in version 6 of the diff

      Oct 02, 2017

      changed this line in version 6 of the diff

      changed this line in [version 6 of the diff](https://gitlab.zigexn.vn/trunglx/venjob/merge_requests/1/diffs?diff_id=3657&start_sha=372fa75e984eeaaed13754f07ad765c40a079c00#742abd5cbc2b12d2da315862ace6297c7d6dcb87_7_7)
      Toggle commit list
    Please register or sign in to reply
  • Ba Toi Dang
    @toidb started a discussion on an old version of the diff Oct 02, 2017
    Last updated by Xuan Trung Le Oct 02, 2017
    app/models/industries_job.rb 0 → 100644
    1 class IndustriesJob < ApplicationRecord
    • Ba Toi Dang @toidb commented Oct 02, 2017
      Master

      Tôi nghĩ không cần model này IndustriesJob bởi vì nó chỉ là bảng trung gian giữa 2 model. Và sử dụng quan hệ has_and_belongs_to_many khai báo mối quan hệ giữa 2 model.

      Edited Oct 02, 2017 by Ba Toi Dang
      Tôi nghĩ không cần model này `IndustriesJob` bởi vì nó chỉ là bảng trung gian giữa 2 model. Và sử dụng quan hệ `has_and_belongs_to_many` khai báo mối quan hệ giữa 2 model.
    • Xuan Trung Le @trunglx

      changed this line in version 4 of the diff

      Oct 02, 2017

      changed this line in version 4 of the diff

      changed this line in [version 4 of the diff](https://gitlab.zigexn.vn/trunglx/venjob/merge_requests/1/diffs?diff_id=3654&start_sha=1030295e4104d12b29af7f9c0fb0b3ae61dbe734#8dddb88f130f1f59b7ce2366ac632c285c34f270_1_0)
      Toggle commit list
    • Xuan Trung Le @trunglx commented Oct 02, 2017
      Master

      Fixed.

      Fixed.
    Please register or sign in to reply
  • Ba Toi Dang
    @toidb started a discussion on an old version of the diff Oct 02, 2017
    Last updated by Xuan Trung Le Oct 02, 2017
    app/models/industry.rb 0 → 100644
    1 class Industry < ApplicationRecord
    2 has_many :industries_jobs
    3 has_many :jobs, through: :industries_jobs
    • Ba Toi Dang @toidb commented Oct 02, 2017
      Master

      Có thể sử dụng quan hệ has_and_belongs_to_many ở đây.

      P/S: kiểm tra những chỗ khác.

      Có thể sử dụng quan hệ `has_and_belongs_to_many` ở đây. P/S: kiểm tra những chỗ khác.
    • Xuan Trung Le @trunglx

      changed this line in version 4 of the diff

      Oct 02, 2017

      changed this line in version 4 of the diff

      changed this line in [version 4 of the diff](https://gitlab.zigexn.vn/trunglx/venjob/merge_requests/1/diffs?diff_id=3654&start_sha=1030295e4104d12b29af7f9c0fb0b3ae61dbe734#6fd7ec4bda80a3376d591b3e766bce8bf035c4c6_3_2)
      Toggle commit list
    • Xuan Trung Le @trunglx commented Oct 02, 2017
      Master

      Fixed.

      Fixed.
    Please register or sign in to reply
  • Ba Toi Dang
    @toidb started a discussion on an old version of the diff Oct 02, 2017
    Last updated by Xuan Trung Le Oct 02, 2017
    app/models/industry.rb 0 → 100644
    1 class Industry < ApplicationRecord
    2 has_many :industries_jobs
    3 has_many :jobs, through: :industries_jobs
    • Ba Toi Dang @toidb commented Oct 02, 2017
      Master

      Có thể sử dụng quan hệ has_and_belongs_to_many ở đây.

      P/S: kiểm tra những chỗ khác.

      Có thể sử dụng quan hệ `has_and_belongs_to_many` ở đây. P/S: kiểm tra những chỗ khác.
    • Xuan Trung Le @trunglx

      changed this line in version 4 of the diff

      Oct 02, 2017

      changed this line in version 4 of the diff

      changed this line in [version 4 of the diff](https://gitlab.zigexn.vn/trunglx/venjob/merge_requests/1/diffs?diff_id=3654&start_sha=1030295e4104d12b29af7f9c0fb0b3ae61dbe734#6fd7ec4bda80a3376d591b3e766bce8bf035c4c6_3_2)
      Toggle commit list
    • Xuan Trung Le @trunglx commented Oct 02, 2017
      Master

      Fixed.

      Fixed.
    Please register or sign in to reply
  • Xuan Trung Le @trunglx

    added 1 commit

    • 35ed72e5 - Fix creating db

    Compare with previous version

    Oct 02, 2017

    added 1 commit

    • 35ed72e5 - Fix creating db

    Compare with previous version

    added 1 commit * 35ed72e5 - Fix creating db [Compare with previous version](https://gitlab.zigexn.vn/trunglx/venjob/merge_requests/1/diffs?diff_id=3654&start_sha=1030295e4104d12b29af7f9c0fb0b3ae61dbe734)
    Toggle commit list
  • Ba Toi Dang
    @toidb started a discussion on an old version of the diff Oct 02, 2017
    Last updated by Xuan Trung Le Oct 02, 2017
    test/fixtures/industries_jobs.yml 0 → 100644
    1 # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
    • Ba Toi Dang @toidb commented Oct 02, 2017
      Master

      File này vẫn còn. @trunglx kiểm tra lại commit xem có add thiếu ko?

      File này vẫn còn. @trunglx kiểm tra lại commit xem có add thiếu ko?
    • Xuan Trung Le @trunglx

      changed this line in version 5 of the diff

      Oct 02, 2017

      changed this line in version 5 of the diff

      changed this line in [version 5 of the diff](https://gitlab.zigexn.vn/trunglx/venjob/merge_requests/1/diffs?diff_id=3655&start_sha=35ed72e5d24bc9206528967666ea986f87869b24#f762510fbc424eedaf7af12fdb2e53460ca96c35_1_0)
      Toggle commit list
    • Xuan Trung Le @trunglx commented Oct 02, 2017
      Master

      Deleted this file.

      Deleted this file.
    Please register or sign in to reply
  • Xuan Trung Le @trunglx

    added 1 commit

    • 372fa75e - deleted industries_jobs.yml

    Compare with previous version

    Oct 02, 2017

    added 1 commit

    • 372fa75e - deleted industries_jobs.yml

    Compare with previous version

    added 1 commit * 372fa75e - deleted industries_jobs.yml [Compare with previous version](https://gitlab.zigexn.vn/trunglx/venjob/merge_requests/1/diffs?diff_id=3655&start_sha=35ed72e5d24bc9206528967666ea986f87869b24)
    Toggle commit list
  • Xuan Trung Le @trunglx

    added 1 commit

    • 77586e05 - fix duplication association error and delete industries_job_test file.

    Compare with previous version

    Oct 02, 2017

    added 1 commit

    • 77586e05 - fix duplication association error and delete industries_job_test file.

    Compare with previous version

    added 1 commit * 77586e05 - fix duplication association error and delete industries_job_test file. [Compare with previous version](https://gitlab.zigexn.vn/trunglx/venjob/merge_requests/1/diffs?diff_id=3657&start_sha=372fa75e984eeaaed13754f07ad765c40a079c00)
    Toggle commit list
  • Xuan Trung Le @trunglx

    added 1 commit

    • 37c2419d - fix duplicate association eroor and delete industries_job_test.rb

    Compare with previous version

    Oct 02, 2017

    added 1 commit

    • 37c2419d - fix duplicate association eroor and delete industries_job_test.rb

    Compare with previous version

    added 1 commit * 37c2419d - fix duplicate association eroor and delete industries_job_test.rb [Compare with previous version](https://gitlab.zigexn.vn/trunglx/venjob/merge_requests/1/diffs?diff_id=3658&start_sha=77586e0507cd5bfb67cb855ec117ef146e95bd54)
    Toggle commit list
  • Ba Toi Dang @toidb

    mentioned in commit fe41d8a4

    Oct 02, 2017

    mentioned in commit fe41d8a4

    mentioned in commit fe41d8a4610c25d08f82f7bcea5ba0d1c7ca1047
    Toggle commit list
  • Ba Toi Dang @toidb

    merged

    Oct 02, 2017

    merged

    merged
    Toggle commit list
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment
Xuan Trung Le
Assignee
Xuan Trung Le @trunglx
Assign to
None
Milestone
None
Assign milestone
Time tracking
2
2 participants
Reference: trunglx/venjob!1
×

Revert this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.
×

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.