mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 12:45:46 +08:00
Merge branch 'develop' into standalone_develop
This commit is contained in:
19
db/migrate/20230321022108_create_project_topics.rb
Normal file
19
db/migrate/20230321022108_create_project_topics.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
class CreateProjectTopics < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :project_topics do |t|
|
||||
t.references :user
|
||||
t.string :name
|
||||
t.integer :position, default: 0
|
||||
t.integer :projects_count, default: 0
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
create_table :project_topic_ralates do |t|
|
||||
t.belongs_to :project_topic, index: true
|
||||
t.belongs_to :project, index: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user