msfconsole DEPRECATION WARNING: Support for Rails < 4.1.0 will be dropped. (called from <top (required)> at /opt/metasploit/apps/pro/ui/lib/metasploit/pro/ui.rb:16)
So, the solution is:
First, execute this command:
gem update
service postgresql start
service metasploit start
msfconsole -n but if appear the same message:
try msfconsole.framework
Definitely to solve and don't do that again execute this way:
ln -f -s /usr/share/metasploit-framework/msfconsole /usr/sbin/msfconsole
source: https://community.rapid7.com/thread/7388