19 Active Record 17 Retrospective
rake db:version
Current version: 20110711000009
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
20110711000001
20110711000002
20110711000003
20110711000004
20110711000005
20110711000006
20110711000007
20110711000008
20110711000009
ls log
development.log
production.log
server.log
test.log
find script -type f
script/rails
script/load_orders.rb
echo "puts $:" | IRBRC=tmp/irbrc rails console
Loading development environment (Rails 3.0.10)
Switch to inspect mode.
>> puts $:
/home/rubys/git/awdwr/edition4/work-193-30/depot/lib
/home/rubys/git/awdwr/edition4/work-193-30/depot/vendor
/home/rubys/git/awdwr/edition4/work-193-30/depot/app/mailers
/home/rubys/git/awdwr/edition4/work-193-30/depot/app/controllers
/home/rubys/git/awdwr/edition4/work-193-30/depot/app/models
/home/rubys/git/awdwr/edition4/work-193-30/depot/app/helpers
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/will_paginate-3.0.2/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/sqlite3-1.3.4/lib
/home/rubys/git/rails/lib
/home/rubys/git/rails/railties/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/thor-0.14.6/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/rdoc-3.11/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/mysql-2.8.1/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/mysql-2.8.1/ext
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/json-1.6.1/ext/json/ext
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/json-1.6.1/ext
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/json-1.6.1/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/capistrano-2.9.0/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/net-ssh-gateway-1.1.0/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/net-sftp-2.0.5/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/net-scp-1.0.4/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/net-ssh-2.2.1/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/highline-1.6.2/lib
/home/rubys/git/rails/activeresource/lib
/home/rubys/git/rails/activerecord/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/arel-2.0.10/lib
/home/rubys/git/rails/actionmailer/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/mail-2.2.19/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/treetop-1.4.10/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/polyglot-0.3.2/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/mime-types-1.16/lib
/home/rubys/git/rails/actionpack/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/tzinfo-0.3.30/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/rack-test-0.5.7/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/rack-mount-0.6.14/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/rack-1.2.4/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/erubis-2.6.6/lib
/home/rubys/git/rails/activemodel/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/i18n-0.5.0/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/builder-2.1.2/lib
/home/rubys/git/rails/activesupport/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/abstract-1.0.0/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476@global/gems/rake-0.9.2/lib
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/bundler-1.0.21/lib
/home/rubys/git/gorp/lib
/home/rubys/.rvm/rubies/ruby-1.9.3-r33476/lib/ruby/site_ruby/1.9.1
/home/rubys/.rvm/rubies/ruby-1.9.3-r33476/lib/ruby/site_ruby/1.9.1/x86_64-linux
/home/rubys/.rvm/rubies/ruby-1.9.3-r33476/lib/ruby/site_ruby
/home/rubys/.rvm/rubies/ruby-1.9.3-r33476/lib/ruby/vendor_ruby/1.9.1
/home/rubys/.rvm/rubies/ruby-1.9.3-r33476/lib/ruby/vendor_ruby/1.9.1/x86_64-linux
/home/rubys/.rvm/rubies/ruby-1.9.3-r33476/lib/ruby/vendor_ruby
/home/rubys/.rvm/rubies/ruby-1.9.3-r33476/lib/ruby/1.9.1
/home/rubys/.rvm/rubies/ruby-1.9.3-r33476/lib/ruby/1.9.1/x86_64-linux
/home/rubys/git/rails/actionpack/lib/action_controller/vendor/html-scanner
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/rack-mount-0.6.14/lib/rack/mount/vendor/multimap
/home/rubys/.rvm/gems/ruby-1.9.3-r33476/gems/rack-mount-0.6.14/lib/rack/mount/vendor/regin
=> nil
>>