railsでmigrateすると下記のような表示が出てきます。
一応テーブルは作られてるみたいなので問題はないのかも知れませんが、この後モデルを作成しても似たような現象が起きるので気になってます。
何やら色々と警告されてるみたいなのですが、warningの量が多すぎて理解できないでいます。
原因わかる方居られましたらごきょう
[vagrant@localhost myblog]$ rails db:migrate /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/stack.rb:35: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/static.rb:109: warning: The called method `initialize' is defined here /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:82: warning: deprecated Object#=~ is called on Integer; it always returns nil /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/sqlite3_adapter.rb:570: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/schema_definitions.rb:219: warning: The called method `initialize' is defined here /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/schema_migration.rb:28: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/schema_definitions.rb:187: warning: The called method `string' is defined here /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/schema_definitions.rb:322: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/schema_definitions.rb:371: warning: The called method `new_column_definition' is defined here /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/schema_creation.rb:17: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/schema_statements.rb:1062: warning: The called method `type_to_sql' is defined here /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/internal_metadata.rb:35: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/schema_definitions.rb:187: warning: The called method `string' is defined here /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/transactions.rb:210: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/database_statements.rb:228: warning: The called method `transaction' is defined here /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/transaction.rb:126: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/transaction.rb:47: warning: The called method `initialize' is defined here == 20200401195824 CreatePosts: migrating ====================================== -- create_table(:posts) /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/schema_statements.rb:278: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb:5: warning: The called method `primary_key' is defined here -> 0.0024s == 20200401195824 CreatePosts: migrated (0.0025s) ============================= /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activemodel-5.1.7/lib/active_model/type/integer.rb:11: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/vagrant/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activemodel-5.1.7/lib/active_model/type/value.rb:6: warning: The called method `initialize' is defined here
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/04/07 09:31
2020/04/07 09:59 編集