19 Active Record 17 Retrospective
rake db:version
Current version: 20130225000009
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
20130225000001
20130225000002
20130225000003
20130225000004
20130225000005
20130225000006
20130225000007
20130225000008
20130225000009
ls log
development.log
production.log
test.log
find script -type f
script/rails
echo "puts $:" | IRBRC=tmp/irbrc rails console
Loading development environment (Rails 3.2.12)
Switch to inspect mode.
>> puts $:
/home/rubys/git/awdwr/edition4/work-200-32/depot/lib
/home/rubys/git/awdwr/edition4/work-200-32/depot/vendor
/home/rubys/git/awdwr/edition4/work-200-32/depot/app/assets
/home/rubys/git/awdwr/edition4/work-200-32/depot/app/controllers
/home/rubys/git/awdwr/edition4/work-200-32/depot/app/helpers
/home/rubys/git/awdwr/edition4/work-200-32/depot/app/mailers
/home/rubys/git/awdwr/edition4/work-200-32/depot/app/models
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/jquery-rails-2.2.1/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/jquery-rails-2.2.1/vendor
/home/rubys/git/coffee-rails/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/uglifier-1.3.0/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/sqlite3-1.3.7/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/sass-3.2.6/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/rvm-capistrano-1.2.7/lib
/home/rubys/git/rails/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/mysql2-0.3.11/lib
/home/rubys/git/rails/railties/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/thor-0.17.0/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/rdoc-3.12.2/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/json-1.7.7/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/rack-ssl-1.3.3/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/coffee-script-2.2.0/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/execjs-1.4.0/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/coffee-script-source-1.5.0/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/capistrano-2.14.2/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/net-ssh-gateway-1.2.0/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/net-sftp-2.1.1/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/net-scp-1.1.0/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/net-ssh-2.6.5/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/highline-1.6.15/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/bcrypt-ruby-3.0.1/lib
/home/rubys/git/rails/activeresource/lib
/home/rubys/git/rails/activerecord/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/tzinfo-0.3.35/lib
/home/rubys/git/rails/actionmailer/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/mail-2.5.3/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/treetop-1.4.12/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/polyglot-0.3.3/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/mime-types-1.21/lib
/home/rubys/git/rails/actionpack/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/sprockets-2.2.2/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/tilt-1.3.3/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/hike-1.2.1/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/rack-test-0.6.2/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/rack-cache-1.2/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/erubis-2.7.0/lib
/home/rubys/git/rails/activemodel/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/builder-3.0.4/lib
/home/rubys/git/rails/activesupport/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/multi_json-1.6.1/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/i18n-0.6.2/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0@global/gems/rake-10.0.3/lib
/home/rubys/.rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib
/home/rubys/git/gorp/lib
/home/rubys/git/journey/lib
/home/rubys/git/arel/lib
/home/rubys/git/sass-rails/lib
/home/rubys/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0
/home/rubys/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/x86_64-linux
/home/rubys/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby
/home/rubys/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/vendor_ruby/2.0.0
/home/rubys/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/vendor_ruby/2.0.0/x86_64-linux
/home/rubys/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/vendor_ruby
/home/rubys/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0
/home/rubys/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/x86_64-linux
/home/rubys/git/rails/actionpack/lib/action_controller/vendor/html-scanner
=> nil
>>