mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
13 lines
341 B
Ruby
13 lines
341 B
Ruby
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
|