Skip to content

Commit

Permalink
Remove annotate gem and annotations (Ruby LSP better).
Browse files Browse the repository at this point in the history
  • Loading branch information
gregschmit committed Jun 13, 2024
1 parent dc8c6e6 commit 7be41c1
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 151 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ gem "stackprof"
gem "sentry-rails"

group :development do
gem "annotate"
gem "better_errors", "2.9.1" # Avoid `sassc` dependency.
gem "binding_of_caller"
gem "byebug"
Expand Down
4 changes: 0 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ GEM
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
annotate (3.2.0)
activerecord (>= 3.2, < 8.0)
rake (>= 10.4, < 14.0)
ast (2.4.2)
base64 (0.2.0)
bcrypt_pbkdf (1.1.0)
Expand Down Expand Up @@ -326,7 +323,6 @@ PLATFORMS

DEPENDENCIES
active_model_serializers (= 0.10.14)
annotate
better_errors (= 2.9.1)
binding_of_caller
bullet
Expand Down
18 changes: 0 additions & 18 deletions test/app/models/email.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
# == Schema Information
#
# Table name: emails
#
# id :integer not null, primary key
# email :string default(""), not null
# is_primary :boolean default(FALSE), not null
# user_id :integer
#
# Indexes
#
# index_emails_on_email (email) UNIQUE
# index_emails_on_user_id (user_id)
#
# Foreign Keys
#
# user_id (user_id => users.id) ON DELETE => nullify
#
class Email < ApplicationRecord
belongs_to :user
has_one :billing_user, class_name: "User", inverse_of: :billing_email
Expand Down
12 changes: 0 additions & 12 deletions test/app/models/genre.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
# == Schema Information
#
# Table name: genres
#
# id :integer not null, primary key
# description :string default(""), not null
# name :string default(""), not null
#
# Indexes
#
# index_genres_on_name (name) UNIQUE
#
class Genre < ApplicationRecord
has_and_belongs_to_many :movies
has_many :main_movies, class_name: "Movie", foreign_key: "main_genre_id"
Expand Down
22 changes: 0 additions & 22 deletions test/app/models/marble.rb
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
# == Schema Information
#
# Table name: marbles
#
# id :integer not null, primary key
# is_discounted :boolean default(FALSE)
# name :string default(""), not null
# price :decimal(6, 2)
# radius_mm :integer default(1), not null
# created_at :datetime
# updated_at :datetime
# user_id :integer
#
# Indexes
#
# index_marbles_on_name (name) UNIQUE
# index_marbles_on_user_id (user_id)
#
# Foreign Keys
#
# user_id (user_id => users.id) ON DELETE => cascade
#
class Marble < ApplicationRecord
belongs_to :user, optional: true

Expand Down
20 changes: 0 additions & 20 deletions test/app/models/movie.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
# == Schema Information
#
# Table name: movies
#
# id :integer not null, primary key
# name :string default(""), not null
# price :decimal(8, 2)
# created_at :datetime
# updated_at :datetime
# main_genre_id :integer
#
# Indexes
#
# index_movies_on_main_genre_id (main_genre_id)
# index_movies_on_name (name) UNIQUE
#
# Foreign Keys
#
# main_genre_id (main_genre_id => genres.id) ON DELETE => nullify
#
class Movie < ApplicationRecord
belongs_to :main_genre, optional: true, class_name: "Genre"
has_and_belongs_to_many :genres
Expand Down
17 changes: 0 additions & 17 deletions test/app/models/phone_number.rb
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
# == Schema Information
#
# Table name: phone_numbers
#
# id :integer not null, primary key
# number :string default(""), not null
# user_id :integer not null
#
# Indexes
#
# index_phone_numbers_on_number (number) UNIQUE
# index_phone_numbers_on_user_id (user_id) UNIQUE
#
# Foreign Keys
#
# user_id (user_id => users.id) ON DELETE => cascade
#
class PhoneNumber < ApplicationRecord
belongs_to :user
end
27 changes: 0 additions & 27 deletions test/app/models/user.rb
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
# == Schema Information
#
# Table name: users
#
# id :integer not null, primary key
# age :integer
# balance :decimal(8, 2)
# is_admin :boolean default(FALSE)
# login :string default(""), not null
# state :integer default("default"), not null
# status :string default(""), not null
# created_at :datetime
# updated_at :datetime
# email_id :integer
# manager_id :integer
#
# Indexes
#
# index_users_on_email_id (email_id) UNIQUE
# index_users_on_login (login) UNIQUE
# index_users_on_manager_id (manager_id)
#
# Foreign Keys
#
# email_id (email_id => emails.id) ON DELETE => nullify
# manager_id (manager_id => users.id) ON DELETE => nullify
#
class User < ApplicationRecord
STATUS_OPTS = {
"" => "Unknown",
Expand Down
30 changes: 0 additions & 30 deletions test/lib/tasks/auto_annotate_models.rake

This file was deleted.

0 comments on commit 7be41c1

Please sign in to comment.