FIX update model schema

This commit is contained in:
Jasder 2020-12-29 14:25:40 +08:00
parent 05d1e66ea9
commit 3f525f5779
4 changed files with 89 additions and 69 deletions

View File

@ -1,3 +1,20 @@
# == Schema Information
#
# Table name: apply_signatures
#
# id :integer not null, primary key
# user_id :integer
# project_id :integer
# status :integer default("0")
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_apply_signatures_on_project_id (project_id)
# index_apply_signatures_on_user_id (user_id)
#
class ApplySignature < ApplicationRecord class ApplySignature < ApplicationRecord
belongs_to :user belongs_to :user
belongs_to :project belongs_to :project

View File

@ -7,6 +7,7 @@
# content :text(65535) # content :text(65535)
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# is_secret :boolean default("0")
# #
class License < ApplicationRecord class License < ApplicationRecord

View File

@ -11,6 +11,7 @@
# course_group_id :integer default("0") # course_group_id :integer default("0")
# is_collect :integer default("1") # is_collect :integer default("1")
# graduation_group_id :integer default("0") # graduation_group_id :integer default("0")
# is_apply_signature :boolean default("0")
# #
# Indexes # Indexes
# #

View File

@ -68,6 +68,7 @@
# index_projects_on_updated_on (updated_on) # index_projects_on_updated_on (updated_on)
# #
class Project < ApplicationRecord class Project < ApplicationRecord
include Matchable include Matchable
include Publicable include Publicable