Open YanKyawMinGIT opened 2 years ago
I am having this same issue. Thought it might be an issue with my project.
rails new foobar
rails serve
and everything ran finemigration_comments
gem to the Gemfilebundle install
rails serve
and got the same error message belowchris@Chriss-MBP jsx-testing % rails s
/Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/migration_comments-0.4.1/lib/migration_comments.rb:26:in `block in setup': undefined method `descendants' for MigrationComments::ActiveRecord::ConnectionAdapters::AbstractAdapter::SchemaCreation:Module (NoMethodError)
unless ar_class.descendants.include?(mc_class)
^^^^^^^^^^^^
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/migration_comments-0.4.1/lib/migration_comments.rb:23:in `each'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/migration_comments-0.4.1/lib/migration_comments.rb:23:in `setup'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/migration_comments-0.4.1/lib/migration_comments.rb:59:in `<main>'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler/runtime.rb:60:in `block (2 levels) in require'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler/runtime.rb:55:in `each'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler/runtime.rb:55:in `block in require'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler/runtime.rb:44:in `each'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler/runtime.rb:44:in `require'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler.rb:176:in `require'
from /Users/chris/Desktop/jsx-testing/config/application.rb:7:in `<main>'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.3/lib/rails/commands/server/server_command.rb:137:in `block in perform'
from <internal:kernel>:90:in `tap'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.3/lib/rails/commands/server/server_command.rb:134:in `perform'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.3/lib/rails/command/base.rb:87:in `perform'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.3/lib/rails/command.rb:48:in `invoke'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.3/lib/rails/commands.rb:18:in `<main>'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /Users/chris/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from bin/rails:4:in `<main>'
After
rails server
, My current Problem isOther config :
How to fix it. I have nothing ideas. pls.