Implement search, show_basic, show_detail and add_to_fav for theses
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class CreateFavoriteTheses < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :favorite_theses, id: false do |t|
|
||||
t.integer :id, null: false
|
||||
t.integer :user_id, null: false
|
||||
t.string :title
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
add_index :favorite_theses, :id, unique: true
|
||||
end
|
||||
end
|
||||
+10
-1
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2020_05_21_091231) do
|
||||
ActiveRecord::Schema.define(version: 2020_05_25_132942) do
|
||||
|
||||
create_table "favorite_courses", force: :cascade do |t|
|
||||
t.string "number", null: false
|
||||
@@ -33,6 +33,15 @@ ActiveRecord::Schema.define(version: 2020_05_21_091231) do
|
||||
t.index ["tiss_id"], name: "index_favorite_people_on_tiss_id", unique: true
|
||||
end
|
||||
|
||||
create_table "favorite_theses", 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
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["id"], name: "index_favorite_theses_on_id", unique: true
|
||||
end
|
||||
|
||||
create_table "users", force: :cascade do |t|
|
||||
t.string "email", default: "", null: false
|
||||
t.string "encrypted_password", default: "", null: false
|
||||
|
||||
Reference in New Issue
Block a user