20 Active Record 18 Retrospective
rails db:version
Current version: 20170603000009
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
20170603000001
20170603000002
20170603000003
20170603000004
20170603000005
20170603000006
20170603000007
20170603000008
20170603000009
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.3)
Switch to inspect mode.
>> puts $:
/home/rubys/git/awdwr/edition4/work-233-50/depot/lib
/home/rubys/git/awdwr/edition4/work-233-50/depot/vendor
/home/rubys/git/awdwr/edition4/work-233-50/depot/app/assets
/home/rubys/git/awdwr/edition4/work-233-50/depot/app/channels
/home/rubys/git/awdwr/edition4/work-233-50/depot/app/controllers
/home/rubys/git/awdwr/edition4/work-233-50/depot/app/controllers/concerns
/home/rubys/git/awdwr/edition4/work-233-50/depot/app/helpers
/home/rubys/git/awdwr/edition4/work-233-50/depot/app/jobs
/home/rubys/git/awdwr/edition4/work-233-50/depot/app/mailers
/home/rubys/git/awdwr/edition4/work-233-50/depot/app/models
/home/rubys/git/awdwr/edition4/work-233-50/depot/app/models/concerns
/home/rubys/.rvm/gems/ruby-2.3.3/gems/i18n-js-3.0.0/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/i18n-js-3.0.0/app/assets
/home/rubys/.rvm/gems/ruby-2.3.3/gems/turbolinks-5.0.1/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/jquery-ui-rails-6.0.1/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/jquery-ui-rails-6.0.1/app/assets
/home/rubys/.rvm/gems/ruby-2.3.3/gems/jquery-rails-4.3.1/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/jquery-rails-4.3.1/vendor
/home/rubys/.rvm/gems/ruby-2.3.3/gems/coffee-rails-4.2.2/lib
/home/rubys/git/rails/actioncable/lib
/home/rubys/git/rails/actioncable/app/assets
/home/rubys/.rvm/gems/ruby-2.3.3/gems/bundler-1.15.1/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.3.3/gems/activemodel-serializers-xml-1.0.1/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/spring-2.0.2/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/bindex-0.5.0/lib
/home/rubys/.rvm/gems/ruby-2.3.3/extensions/x86_64-linux/2.3.0/bindex-0.5.0
/home/rubys/.rvm/gems/ruby-2.3.3/gems/byebug-9.0.6/lib
/home/rubys/.rvm/gems/ruby-2.3.3/extensions/x86_64-linux/2.3.0/byebug-9.0.6
/home/rubys/.rvm/gems/ruby-2.3.3/gems/capistrano-passenger-0.2.0/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/capistrano-rvm-0.1.2/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/capistrano-rails-1.2.3/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/capistrano-bundler-1.2.0/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/capistrano-3.8.1/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/airbrussh-1.2.0/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/sshkit-1.13.1/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/net-scp-1.2.1/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/net-ssh-4.1.0/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/bcrypt-3.1.11/lib
/home/rubys/.rvm/gems/ruby-2.3.3/extensions/x86_64-linux/2.3.0/bcrypt-3.1.11
/home/rubys/.rvm/gems/ruby-2.3.3/gems/jbuilder-2.6.4/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/multi_json-1.12.1/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/turbolinks-source-5.0.3/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/coffee-script-2.4.1/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/coffee-script-source-1.12.2/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/uglifier-3.2.0/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/execjs-2.7.0/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/sass-rails-5.0.6/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/tilt-2.0.7/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/sass-3.4.24/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/puma-3.9.0/lib
/home/rubys/.rvm/gems/ruby-2.3.3/extensions/x86_64-linux/2.3.0/puma-3.9.0
/home/rubys/.rvm/gems/ruby-2.3.3/gems/mysql2-0.4.6/lib
/home/rubys/.rvm/gems/ruby-2.3.3/extensions/x86_64-linux/2.3.0/mysql2-0.4.6
/home/rubys/.rvm/gems/ruby-2.3.3/gems/sqlite3-1.3.13/lib
/home/rubys/.rvm/gems/ruby-2.3.3/extensions/x86_64-linux/2.3.0/sqlite3-1.3.13
/home/rubys/.rvm/gems/ruby-2.3.3/gems/sprockets-rails-3.2.0/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib
/home/rubys/git/rails/railties/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/thor-0.19.4/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/method_source-0.8.2/lib
/home/rubys/git/rails/activerecord/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/arel-7.1.4/lib
/home/rubys/git/rails/activemodel/lib
/home/rubys/git/rails/actionmailer/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/mail-2.6.5/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/mime-types-3.1/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/mime-types-data-3.2016.0521/lib
/home/rubys/git/rails/activejob/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/globalid-0.4.0/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/websocket-driver-0.6.5/lib
/home/rubys/.rvm/gems/ruby-2.3.3/extensions/x86_64-linux/2.3.0/websocket-driver-0.6.5
/home/rubys/.rvm/gems/ruby-2.3.3/gems/websocket-extensions-0.1.2/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/nio4r-2.1.0/lib
/home/rubys/.rvm/gems/ruby-2.3.3/extensions/x86_64-linux/2.3.0/nio4r-2.1.0
/home/rubys/git/rails/actionpack/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/rack-test-0.6.3/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/rack-2.0.3/lib
/home/rubys/git/rails/actionview/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/rails-html-sanitizer-1.0.3/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/loofah-2.0.3/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/rails-dom-testing-2.0.3/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/nokogiri-1.7.2/lib
/home/rubys/.rvm/gems/ruby-2.3.3/extensions/x86_64-linux/2.3.0/nokogiri-1.7.2
/home/rubys/.rvm/gems/ruby-2.3.3/gems/mini_portile2-2.1.0/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/erubis-2.7.0/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/builder-3.2.3/lib
/home/rubys/git/rails/activesupport/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/tzinfo-1.2.3/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/thread_safe-0.3.6/lib
/home/rubys/.rvm/gems/ruby-2.3.3@global/gems/minitest-5.8.5/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/i18n-0.8.4/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/concurrent-ruby-1.0.5/lib
/home/rubys/.rvm/gems/ruby-2.3.3/gems/ffi-1.9.18/lib
/home/rubys/.rvm/gems/ruby-2.3.3/extensions/x86_64-linux/2.3.0/ffi-1.9.18
/home/rubys/.rvm/gems/ruby-2.3.3/gems/pg-0.19.0/lib
/home/rubys/.rvm/gems/ruby-2.3.3/extensions/x86_64-linux/2.3.0/pg-0.19.0
/home/rubys/.rvm/gems/ruby-2.3.3/gems/rake-12.0.0/lib
/home/rubys/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0
/home/rubys/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/x86_64-linux
/home/rubys/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby
/home/rubys/.rvm/rubies/ruby-2.3.3/lib/ruby/vendor_ruby/2.3.0
/home/rubys/.rvm/rubies/ruby-2.3.3/lib/ruby/vendor_ruby/2.3.0/x86_64-linux
/home/rubys/.rvm/rubies/ruby-2.3.3/lib/ruby/vendor_ruby
/home/rubys/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0
/home/rubys/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/x86_64-linux
=> nil
>>