Skip to content

[Jitera] Create/Update models and migrations

Quy requested to merge feat/JT-38-quy2b into main

Created by: akuita

This pull request is created by JITERA

Description

[ERD] Changes

table guideline type columns
users This file is already existed. Update the User model to include any new columns or relationships that are not currently present. For example, if a new column "nickname" of type string is to be added, include it as:
attribute :nickname, :string
Make sure to also include any new relationships, such as:
has_many :projects, foreign_key: 'user_id'
has_many :password_resets, foreign_key: 'user_id'
has_one :email_confirmation, foreign_key: 'user_id'

``` | UPDATED | id: integer, sign_in_count: integer, remember_created_at: date, current_sign_in_ip: varchar, locked_at: date, encrypted_password: varchar, confirmed_at: date, failed_attempts: integer, last_sign_in_ip: varchar, confirmation_token: varchar, unconfirmed_email: varchar, email: varchar, reset_password_token: varchar, password_confirmation: varchar, last_sign_in_at: date, reset_password_sent_at: date, password: varchar, unlock_token: varchar, current_sign_in_at: date, confirmation_sent_at: date, created_at: date, updated_at: date, password_hash: varchar, email_confirmed: boolean |
| oauth_applications | This file is already existed. Update the User model to include any new columns or relationships that are not currently present. For example, if a new column "nickname" of type string is to be added, include it as:
  attribute :nickname, :string
Make sure to also include any new relationships, such as:
  has_many :projects, foreign_key: 'user_id'
  has_many :password_resets, foreign_key: 'user_id'
  has_one :email_confirmation, foreign_key: 'user_id'
| oauth_access_grants | This file is already existed. Update the User model to include any new columns or relationships that are not currently present. For example, if a new column "nickname" of type string is to be added, include it as:
  attribute :nickname, :string
Make sure to also include any new relationships, such as:
  has_many :projects, foreign_key: 'user_id'
  has_many :password_resets, foreign_key: 'user_id'
  has_one :email_confirmation, foreign_key: 'user_id'
| oauth_access_tokens | This file is already existed. Update the User model to include any new columns or relationships that are not currently present. For example, if a new column "nickname" of type string is to be added, include it as:
  attribute :nickname, :string
Make sure to also include any new relationships, such as:
  has_many :projects, foreign_key: 'user_id'
  has_many :password_resets, foreign_key: 'user_id'
  has_one :email_confirmation, foreign_key: 'user_id'
| password_resets | This file is already existed. Update the User model to include any new columns or relationships that are not currently present. For example, if a new column "nickname" of type string is to be added, include it as:
  attribute :nickname, :string
Make sure to also include any new relationships, such as:
  has_many :projects, foreign_key: 'user_id'
  has_many :password_resets, foreign_key: 'user_id'
  has_one :email_confirmation, foreign_key: 'user_id'
------

Merge request reports