mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 12:45:46 +08:00
init project
This commit is contained in:
12
db/migrate/20200106022157_create_project_trends.rb
Normal file
12
db/migrate/20200106022157_create_project_trends.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class CreateProjectTrends < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :project_trends do |t|
|
||||
t.integer :user_id
|
||||
t.integer :project_id
|
||||
t.references :trend, polymorphic: true, index: true
|
||||
t.string :action_type
|
||||
t.timestamps
|
||||
end
|
||||
add_index :project_trends, [:user_id, :project_id]
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user