podrian indicarme que problema tengo no permite rear un modelo

$ rails g model Post titlle:string body:text

este es el error que me aparece en la consola
invoke active_record
Traceback (most recent call last):
58: from bin/rails:4:in

'
57: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in
require’
56: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in load_dependency'
55: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in
block in require’
54: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in require'
53: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in
require_with_bootsnap_lfi’
52: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in register'
51: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in
block in require_with_bootsnap_lfi’
50: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require'
49: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/railties-5.2.1/lib/rails/commands.rb:18:in

48: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/railties-5.2.1/lib/rails/command.rb:46:in invoke'
47: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/railties-5.2.1/lib/rails/command/base.rb:65:in
perform’
46: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor.rb:387:in dispatch'
45: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/invocation.rb:126:in
invoke_command’
44: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/command.rb:27:in run'
43: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/railties-5.2.1/lib/rails/commands/generate/generate_command.rb:26:in
perform’
42: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/railties-5.2.1/lib/rails/generators.rb:276:in invoke'
41: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/base.rb:466:in
start’
40: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/group.rb:232:in dispatch'
39: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/invocation.rb:133:in
invoke_all’
38: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/invocation.rb:133:in map'
37: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/invocation.rb:133:in
each’
36: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/invocation.rb:133:in block in invoke_all'
35: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/invocation.rb:126:in
invoke_command’
34: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/command.rb:27:in run'
33: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/group.rb:133:in
_invoke_from_option_orm’
32: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/group.rb:266:in _invoke_for_class_method'
31: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/shell.rb:68:in
with_padding’
30: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/group.rb:277:in block in _invoke_for_class_method'
29: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/invocation.rb:115:in
invoke’
28: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/group.rb:232:in dispatch'
27: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/invocation.rb:133:in
invoke_all’
26: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/invocation.rb:133:in map'
25: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/invocation.rb:133:in
each’
24: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/invocation.rb:133:in block in invoke_all'
23: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/invocation.rb:126:in
invoke_command’
22: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/thor-0.20.0/lib/thor/command.rb:27:in run'
21: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activerecord-5.2.1/lib/rails/generators/active_record/model/model_generator.rb:22:in
create_migration_file’
20: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/railties-5.2.1/lib/rails/generators/named_base.rb:92:in table_name'
19: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/railties-5.2.1/lib/rails/generators/named_base.rb:201:in
pluralize_table_names?’
18: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in require'
17: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in
load_dependency’
16: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in block in require'
15: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in
require’
14: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in require_with_bootsnap_lfi'
13: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in
register’
12: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in block in require_with_bootsnap_lfi'
11: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in
require’
10: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activerecord-5.2.1/lib/active_record/base.rb:27:in
'
9: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activerecord-5.2.1/lib/active_record/base.rb:328:in

8: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activesupport-5.2.1/lib/active_support/lazy_load_hooks.rb:51:in run_load_hooks'
7: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activesupport-5.2.1/lib/active_support/lazy_load_hooks.rb:51:in
each’
6: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activesupport-5.2.1/lib/active_support/lazy_load_hooks.rb:52:in block in run_load_hooks'
5: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activesupport-5.2.1/lib/active_support/lazy_load_hooks.rb:67:in
execute_hook’
4: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activesupport-5.2.1/lib/active_support/lazy_load_hooks.rb:62:in with_execution_control'
3: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activesupport-5.2.1/lib/active_support/lazy_load_hooks.rb:71:in
block in execute_hook’
2: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activesupport-5.2.1/lib/active_support/lazy_load_hooks.rb:71:in instance_eval'
1: from /home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/activerecord-5.2.1/lib/active_record/railtie.rb:133:in
block (2 levels) in ‘
/home/willian/.rvm/gems/ruby-2.5.0@udemy/gems/railties-5.2.1/lib/rails/application/configuration.rb:185:in database_configuration': Cannot loadRails.application.database_configuration`: (RuntimeError)
Could not load database configuration. No such file – [“config/database.yml”]

Leave a Reply

Your email address will not be published. Required fields are marked *