# run tests
rake test
cd activerecord
rake test_mysql
rake test_mysql TEST='test/cases/named_scope_test.rb
# make changes on branch
git checkout -b named_scope_with_bang
git commit -a -m "named_scope with bang"
# pull recent changes and apply to branch
git checkout master
git pull
git checkout named_scope_with_bang
git rebase master
# make patch
git format-patch master --stdout > ~/named_scope_with_bang.diff
# apply patch
curl ... | git am
sql
createdatabase activerecord_unittest;
createdatabase activerecord_unittest2;
grant all on activerecord_unittest.* TO rails@localhost;
grant all on activerecord_unittest2.* TO rails@localhost;