19 Action Controller 17 Retrospective
rails db:version
Current version: 20170326000009
edit lib/tasks/db_schema_migrations.rake
namespace :db do
desc "Prints the migrated versions"
task :schema_migrations => :environment do
puts ActiveRecord::Base.connection.select_values(
'select version from schema_migrations order by version' )
end
end
rails db:schema_migrations
20170326000001
20170326000002
20170326000003
20170326000004
20170326000005
20170326000006
20170326000007
20170326000008
20170326000009
ls log
development.log
production.log
test.log
find script -type f
find: `script': No such file or directory
echo "puts $:" | IRBRC=tmp/irbrc ruby bin/rails console
Loading development environment (Rails 5.0.2)
Switch to inspect mode.
>> puts $:
/home/rubys/git/awdwr/edition4/work-226-50/depot/lib
/home/rubys/git/awdwr/edition4/work-226-50/depot/vendor
/home/rubys/git/awdwr/edition4/work-226-50/depot/app/assets
/home/rubys/git/awdwr/edition4/work-226-50/depot/app/channels
/home/rubys/git/awdwr/edition4/work-226-50/depot/app/controllers
/home/rubys/git/awdwr/edition4/work-226-50/depot/app/controllers/concerns
/home/rubys/git/awdwr/edition4/work-226-50/depot/app/helpers
/home/rubys/git/awdwr/edition4/work-226-50/depot/app/jobs
/home/rubys/git/awdwr/edition4/work-226-50/depot/app/mailers
/home/rubys/git/awdwr/edition4/work-226-50/depot/app/models
/home/rubys/git/awdwr/edition4/work-226-50/depot/app/models/concerns
/home/rubys/.rvm/gems/ruby-2.2.6/gems/turbolinks-5.0.1/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/jquery-ui-rails-6.0.1/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/jquery-ui-rails-6.0.1/app/assets
/home/rubys/.rvm/gems/ruby-2.2.6/gems/jquery-rails-4.3.1/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/jquery-rails-4.3.1/vendor
/home/rubys/.rvm/gems/ruby-2.2.6/gems/coffee-rails-4.2.1/lib
/home/rubys/git/rails/actioncable/lib
/home/rubys/git/rails/actioncable/app/assets
/home/rubys/.rvm/gems/ruby-2.2.6/gems/bundler-1.14.6/lib
/home/rubys/git/web-console/lib
/home/rubys/git/rb-inotify/lib
/home/rubys/git/queue_classic/lib
/home/rubys/git/gorp/lib
/home/rubys/git/rails/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/uglifier-3.1.10/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/turbolinks-source-5.0.0/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/sqlite3-1.3.13/lib
/home/rubys/.rvm/gems/ruby-2.2.6/extensions/x86_64-linux/2.2.0/sqlite3-1.3.13
/home/rubys/.rvm/gems/ruby-2.2.6/gems/spring-2.0.1/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/sass-rails-5.0.6/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/tilt-2.0.7/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/sass-3.4.23/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/sprockets-rails-3.2.0/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/sprockets-3.7.1/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/puma-3.8.2/lib
/home/rubys/.rvm/gems/ruby-2.2.6/extensions/x86_64-linux/2.2.0/puma-3.8.2
/home/rubys/.rvm/gems/ruby-2.2.6/gems/pg-0.19.0/lib
/home/rubys/.rvm/gems/ruby-2.2.6/extensions/x86_64-linux/2.2.0/pg-0.19.0
/home/rubys/.rvm/gems/ruby-2.2.6/gems/mysql2-0.4.5/lib
/home/rubys/.rvm/gems/ruby-2.2.6/extensions/x86_64-linux/2.2.0/mysql2-0.4.5
/home/rubys/.rvm/gems/ruby-2.2.6/gems/jbuilder-2.6.3/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/multi_json-1.12.1/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/ffi-1.9.18/lib
/home/rubys/.rvm/gems/ruby-2.2.6/extensions/x86_64-linux/2.2.0/ffi-1.9.18
/home/rubys/.rvm/gems/ruby-2.2.6/gems/debug_inspector-0.0.2/lib
/home/rubys/.rvm/gems/ruby-2.2.6/extensions/x86_64-linux/2.2.0/debug_inspector-0.0.2
/home/rubys/git/rails/railties/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/thor-0.19.4/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/method_source-0.8.2/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/coffee-script-2.4.1/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/execjs-2.7.0/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/coffee-script-source-1.12.2/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/capistrano-rvm-0.1.2/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/capistrano-rails-1.2.3/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/capistrano-passenger-0.2.0/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/capistrano-bundler-1.2.0/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/capistrano-3.8.0/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/byebug-9.0.6/lib
/home/rubys/.rvm/gems/ruby-2.2.6/extensions/x86_64-linux/2.2.0/byebug-9.0.6
/home/rubys/.rvm/gems/ruby-2.2.6/gems/bcrypt-3.1.11/lib
/home/rubys/.rvm/gems/ruby-2.2.6/extensions/x86_64-linux/2.2.0/bcrypt-3.1.11
/home/rubys/.rvm/gems/ruby-2.2.6/gems/airbrussh-1.1.2/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/sshkit-1.13.0/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/net-scp-1.2.1/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/net-ssh-4.1.0/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/activemodel-serializers-xml-1.0.1/lib
/home/rubys/git/rails/activerecord/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/arel-7.1.4/lib
/home/rubys/git/rails/activemodel/lib
/home/rubys/git/rails/actionmailer/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/mail-2.6.4/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/mime-types-3.1/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/mime-types-data-3.2016.0521/lib
/home/rubys/git/rails/activejob/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/globalid-0.3.7/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/websocket-driver-0.6.5/lib
/home/rubys/.rvm/gems/ruby-2.2.6/extensions/x86_64-linux/2.2.0/websocket-driver-0.6.5
/home/rubys/.rvm/gems/ruby-2.2.6/gems/websocket-extensions-0.1.2/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/nio4r-2.0.0/lib
/home/rubys/.rvm/gems/ruby-2.2.6/extensions/x86_64-linux/2.2.0/nio4r-2.0.0
/home/rubys/git/rails/actionpack/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/rack-test-0.6.3/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/rack-2.0.1/lib
/home/rubys/git/rails/actionview/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/rails-html-sanitizer-1.0.3/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/loofah-2.0.3/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/rails-dom-testing-2.0.2/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/nokogiri-1.7.1/lib
/home/rubys/.rvm/gems/ruby-2.2.6/extensions/x86_64-linux/2.2.0/nokogiri-1.7.1
/home/rubys/.rvm/gems/ruby-2.2.6/gems/mini_portile2-2.1.0/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/erubis-2.7.0/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/builder-3.2.3/lib
/home/rubys/git/rails/activesupport/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/tzinfo-1.2.3/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/thread_safe-0.3.6/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/minitest-5.3.3/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/i18n-0.8.1/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/concurrent-ruby-1.0.5/lib
/home/rubys/.rvm/gems/ruby-2.2.6/gems/rake-12.0.0/lib
/home/rubys/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0
/home/rubys/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0/x86_64-linux
/home/rubys/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby
/home/rubys/.rvm/rubies/ruby-2.2.6/lib/ruby/vendor_ruby/2.2.0
/home/rubys/.rvm/rubies/ruby-2.2.6/lib/ruby/vendor_ruby/2.2.0/x86_64-linux
/home/rubys/.rvm/rubies/ruby-2.2.6/lib/ruby/vendor_ruby
/home/rubys/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0
/home/rubys/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/x86_64-linux
=> nil
>>