Merge remote-tracking branch 'remotes/origin/projects_search' into fixes
# Conflicts: # app/views/favorites/projects.html.erb # db/schema.rb
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class CreateFavoriteProjects < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :favorite_projects, id: false do |t|
|
||||
t.integer :id, null: false
|
||||
t.integer :user_id, null: false
|
||||
t.string :title
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
add_index :favorite_projects, :id, unique: true
|
||||
end
|
||||
end
|
||||
+3
-2
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2020_05_29_142235) do
|
||||
ActiveRecord::Schema.define(version: 2020_05_29_081537) do
|
||||
|
||||
create_table "favorite_courses", force: :cascade do |t|
|
||||
t.string "number", null: false
|
||||
@@ -33,7 +33,8 @@ ActiveRecord::Schema.define(version: 2020_05_29_142235) do
|
||||
t.index ["tiss_id"], name: "index_favorite_people_on_tiss_id", unique: true
|
||||
end
|
||||
|
||||
create_table "favorite_projects", force: :cascade do |t|
|
||||
create_table "favorite_projects", id: false, force: :cascade do |t|
|
||||
t.integer "id", null: false
|
||||
t.integer "user_id", null: false
|
||||
t.string "title"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
|
||||
Reference in New Issue
Block a user