Skip to content

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

Merged
Opened Jun 08, 2018 by Quang Vinh Nguyen@vinhnq 
  • Report abuse
Report abuse

design database

This reverts merge request !3 (merged)

×

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch origin
git checkout -b revert-5e3b55de origin/revert-5e3b55de

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git checkout master
git merge --no-ff revert-5e3b55de

Step 4. Push the result of the merge to GitLab

git push origin master

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

  • Discussion 3
  • Commits 1
  • Changes 44
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Van Toan Vu
    @toanvv started a discussion on the diff Jun 08, 2018
    app/views/layouts/application.html.erb
    10 10 </head>
    11 11
    12 12 <body>
    13
    14 <% if notice %>
    15 <p class="alert alert-success"><%= notice %></p>
    16 <% end %>
    17 <% if alert %>
    18 <p class="alert alert-danger"><%= alert %></p>
    19 <% end %>
    20 <!--
    21 <% flash.each do |key, value| %>
    • Van Toan Vu @toanvv commented Jun 08, 2018
      Master

      this one is better i think, please test, and test with devise flash too

      this one is better i think, please test, and test with devise flash too
    Please register or sign in to reply
  • Van Toan Vu
    @toanvv started a discussion on the diff Jun 08, 2018
    db/migrate/20180607031349_create_cities.rb 0 → 100644
    1 class CreateCities < ActiveRecord::Migration[5.2]
    2 def change
    3 create_table :cities do |t|
    4 t.string :name, limit: 50
    • Van Toan Vu @toanvv commented Jun 08, 2018
      Master

      usually they don't define limit length on SQL because it very easy to cause 500 error on server, they use validate from ActiveModel instead, another reason is AM easier to change limit, you don't need to migrate database.

      usually they don't define limit length on SQL because it very easy to cause 500 error on server, they use validate from ActiveModel instead, another reason is AM easier to change limit, you don't need to migrate database.
    Please register or sign in to reply
  • Van Toan Vu
    @toanvv started a discussion on the diff Jun 08, 2018
    spec/models/city_spec.rb 0 → 100644
    9 it do
    10 should have_db_column(:name).of_type(:string)
    11 should have_db_column(:city_type).of_type(:string)
    12 should have_db_column(:slug).of_type(:string)
    13 should have_db_column(:name_with_type).of_type(:string)
    14 should have_db_column(:path).of_type(:string)
    15 should have_db_column(:code).of_type(:integer)
    16 should have_db_column(:parent_code).of_type(:integer)
    17 end
    18 end
    19
    20 it 'should be validates' do
    21 expect(city).to be_valid
    22 end
    23
    24 describe 'validations' do
    • Van Toan Vu @toanvv commented Jun 08, 2018
      Master

      i think "describe" is not easy to understand

      i think "describe" is not easy to understand
    Please register or sign in to reply
  • Quang Vinh Nguyen @vinhnq

    mentioned in commit bdc9df2d

    Jun 12, 2018

    mentioned in commit bdc9df2d

    mentioned in commit bdc9df2d77078a9c4bcf51cf6e5fb3e6ebdf9c4a
    Toggle commit list
  • Quang Vinh Nguyen @vinhnq

    merged

    Jun 12, 2018

    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
Assignee
No assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
2
2 participants
Reference: vinhnq/venjobs_app!4
×

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.