Add a code checking about file or not to the rails db command
Merge pull request #18049 from yuki3738/fix_rails_db_command_error

Add a code checking about file or not to the rails db command