File tree 8 files changed +47
-28
lines changed
8 files changed +47
-28
lines changed Original file line number Diff line number Diff line change 17
17
# suggested_resource_exact :integer
18
18
# lcsh :integer
19
19
# citation :integer
20
- # barcode :integer
21
20
#
22
21
module Metrics
23
22
# Algorithms aggregates statistics for matches for all SearchEvents
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
+ # == Schema Information
4
+ #
5
+ # Table name: suggested_resources
6
+ #
7
+ # id :integer not null, primary key
8
+ # title :string
9
+ # url :string
10
+ # created_at :datetime not null
11
+ # updated_at :datetime not null
12
+ #
3
13
# SuggestedResource stores custom hints that we want to send to the
4
14
# user in response to specific strings. For example, a search for "web of
5
15
# science" should be met with our custom login link to Web of Science via MIT.
Original file line number Diff line number Diff line change 7
7
#
8
8
# Table name: terms
9
9
#
10
- # id :integer not null, primary key
11
- # phrase :string
12
- # created_at :datetime not null
13
- # updated_at :datetime not null
14
- # flag :boolean
15
- # fingerprint_id :integer
10
+ # id :integer not null, primary key
11
+ # phrase :string
12
+ # created_at :datetime not null
13
+ # updated_at :datetime not null
14
+ # flag :boolean
15
+ # fingerprint_id :integer
16
+ # suggested_resource_id :integer
16
17
#
17
18
class Term < ApplicationRecord
18
19
has_many :search_events , dependent : :destroy
Original file line number Diff line number Diff line change 1
1
# == Schema Information
2
2
#
3
- # Table name: detector_suggested_resources
3
+ # Table name: suggested_resources
4
4
#
5
- # id :integer not null, primary key
6
- # title :string
7
- # url :string
8
- # phrase :string
9
- # fingerprint :string
10
- # created_at :datetime not null
11
- # updated_at :datetime not null
5
+ # id :integer not null, primary key
6
+ # title :string
7
+ # url :string
8
+ # created_at :datetime not null
9
+ # updated_at :datetime not null
12
10
#
13
11
14
12
Original file line number Diff line number Diff line change 2
2
#
3
3
# Table name: terms
4
4
#
5
- # id :integer not null, primary key
6
- # phrase :string
7
- # created_at :datetime not null
8
- # updated_at :datetime not null
9
- # flag :boolean
10
- # fingerprint_id :integer
5
+ # id :integer not null, primary key
6
+ # phrase :string
7
+ # created_at :datetime not null
8
+ # updated_at :datetime not null
9
+ # flag :boolean
10
+ # fingerprint_id :integer
11
+ # suggested_resource_id :integer
11
12
#
12
13
13
14
cool :
Original file line number Diff line number Diff line change 17
17
# suggested_resource_exact :integer
18
18
# lcsh :integer
19
19
# citation :integer
20
- # barcode :integer
21
20
#
22
21
require 'test_helper'
23
22
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
+ # == Schema Information
4
+ #
5
+ # Table name: suggested_resources
6
+ #
7
+ # id :integer not null, primary key
8
+ # title :string
9
+ # url :string
10
+ # created_at :datetime not null
11
+ # updated_at :datetime not null
12
+ #
3
13
require 'test_helper'
4
14
5
15
class SuggestedResourceTest < ActiveSupport ::TestCase
Original file line number Diff line number Diff line change 4
4
#
5
5
# Table name: terms
6
6
#
7
- # id :integer not null, primary key
8
- # phrase :string
9
- # created_at :datetime not null
10
- # updated_at :datetime not null
11
- # flag :boolean
12
- # fingerprint_id :integer
7
+ # id :integer not null, primary key
8
+ # phrase :string
9
+ # created_at :datetime not null
10
+ # updated_at :datetime not null
11
+ # flag :boolean
12
+ # fingerprint_id :integer
13
+ # suggested_resource_id :integer
13
14
#
14
15
require 'test_helper'
15
16
You can’t perform that action at this time.
0 commit comments