19 Action Controller 17 Retrospective
rake db:version
Current version: 20150722000009
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
rake db:schema_migrations
20150722000001
20150722000002
20150722000003
20150722000004
20150722000005
20150722000006
20150722000007
20150722000008
20150722000009
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 4.0.13)
Switch to inspect mode.
>> puts $:
/home/rubys/git/awdwr/edition4/work-40/depot/lib
/home/rubys/git/awdwr/edition4/work-40/depot/vendor
/home/rubys/git/awdwr/edition4/work-40/depot/app/assets
/home/rubys/git/awdwr/edition4/work-40/depot/app/controllers
/home/rubys/git/awdwr/edition4/work-40/depot/app/helpers
/home/rubys/git/awdwr/edition4/work-40/depot/app/mailers
/home/rubys/git/awdwr/edition4/work-40/depot/app/models
/home/rubys/git/awdwr/edition4/work-40/depot/app/controllers/concerns
/home/rubys/git/awdwr/edition4/work-40/depot/app/models/concerns
/home/rubys/.rvm/gems/ruby-2.1.5/gems/turbolinks-2.5.3/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/jquery-ui-rails-5.0.5/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/jquery-ui-rails-5.0.5/app/assets
/home/rubys/.rvm/gems/ruby-2.1.5/gems/jquery-rails-3.1.3/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/jquery-rails-3.1.3/vendor
/home/rubys/git/coffee-rails/lib
/home/rubys/git/rails/actionpack/lib/action_view/vendor/html-scanner
/home/rubys/.rvm/gems/ruby-2.1.5/gems/uglifier-2.7.1/lib
/home/rubys/.rvm/gems/ruby-2.1.5/extensions/x86_64-linux/2.1.0/sqlite3-1.3.10
/home/rubys/.rvm/gems/ruby-2.1.5/gems/sqlite3-1.3.10/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/sdoc-0.4.1/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/sass-3.4.16/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/rvm-capistrano-1.5.6/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/rdoc-4.2.0/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/sprockets-2.12.4/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/tilt-1.4.1/lib
/home/rubys/.rvm/gems/ruby-2.1.5/extensions/x86_64-linux/2.1.0/mysql2-0.3.18
/home/rubys/.rvm/gems/ruby-2.1.5/gems/mysql2-0.3.18/lib
/home/rubys/.rvm/gems/ruby-2.1.5/extensions/x86_64-linux/2.1.0/json-1.8.3
/home/rubys/.rvm/gems/ruby-2.1.5/gems/json-1.8.3/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/jbuilder-1.5.3/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/hike-1.2.3/lib
/home/rubys/git/rails/railties/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/thor-0.19.1/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/coffee-script-2.4.1/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/execjs-2.5.2/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/coffee-script-source-1.9.1.1/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/capistrano-2.15.6/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/net-ssh-gateway-1.2.0/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/net-sftp-2.1.2/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/net-scp-1.2.1/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/net-ssh-2.9.2/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/highline-1.7.2/lib
/home/rubys/.rvm/gems/ruby-2.1.5/extensions/x86_64-linux/2.1.0/bcrypt-3.1.10
/home/rubys/.rvm/gems/ruby-2.1.5/gems/bcrypt-3.1.10/lib
/home/rubys/git/rails/activerecord/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/activerecord-deprecated_finders-1.0.4/lib
/home/rubys/git/rails/activemodel/lib
/home/rubys/git/rails/actionmailer/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/mail-2.6.3/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/mime-types-2.6.1/lib
/home/rubys/git/rails/actionpack/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/rack-test-0.6.3/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/rack-1.5.5/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/erubis-2.7.0/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/builder-3.1.4/lib
/home/rubys/git/rails/activesupport/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/tzinfo-0.3.44/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/thread_safe-0.3.5/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/multi_json-1.11.2/lib
/home/rubys/.rvm/rubies/ruby-2.1.5/lib/ruby/gems/2.1.0/gems/minitest-4.7.5/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/i18n-0.7.0/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/rake-10.4.2/lib
/home/rubys/.rvm/gems/ruby-2.1.5/gems/bundler-1.10.5/lib
/home/rubys/git/sass-rails/lib
/home/rubys/git/arel/lib
/home/rubys/git/sprockets-rails/lib
/home/rubys/git/gorp/lib
/home/rubys/git/rails/lib
/home/rubys/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0
/home/rubys/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/x86_64-linux
/home/rubys/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby
/home/rubys/.rvm/rubies/ruby-2.1.5/lib/ruby/vendor_ruby/2.1.0
/home/rubys/.rvm/rubies/ruby-2.1.5/lib/ruby/vendor_ruby/2.1.0/x86_64-linux
/home/rubys/.rvm/rubies/ruby-2.1.5/lib/ruby/vendor_ruby
/home/rubys/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0
/home/rubys/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/x86_64-linux
=> nil
>>