Jon Leighton
b4b178f7e9
Fix #3247 .
...
Fixes creating records in a through association with a polymorphic source
type.
2011-11-03 10:23:42 +00:00
Vijay Dev
1afe269a4a
assert_match takes a regexp and a string in that order
2011-10-31 19:01:03 +05:30
Laust Rud Jacobsen
ff9c2799c1
dump_schema_information: explicitly order inserts into schema_migrations table
...
This change reduces churn in the db/development_structure.sql file when using :sql as
active_record.schema_format, and makes comparing diffs much easier.
Test ensures the output SQL-statements are lexically ordered by version.
2011-10-31 10:36:13 +01:00
Vijay Dev
c809de8291
Merge branch 'master' of github.com:lifo/docrails
2011-10-30 14:47:23 +05:30
Aaron Patterson
4a065d56ed
clear statement cache when tables are altered
2011-10-27 10:55:52 -07:00
Joe Van Dyk
420f7fd507
Added failing test case for changing schema in migration not clearing the prepared statement cache
2011-10-27 10:50:38 -07:00
Arun Agrawal
95d9c120d3
More checks for instance writers.
2011-10-27 16:25:50 +05:30
Arun Agrawal
80fc29f36f
Adding more checks for instance_writer false
2011-10-27 15:47:56 +05:30
Arun Agrawal
485b99611b
Test fix Allow instances to disable record_timestamps
...
Removed here 0d0176c4ff
2011-10-27 15:41:15 +05:30
Pratik Naik
0d0176c4ff
Allow instances to disable record_timestamps
2011-10-26 18:20:12 +01:00
David Heinemeier Hansson
1d9ab88ee6
Merge branch 'master' of github.com:rails/rails
2011-10-25 17:22:55 -05:00
David Heinemeier Hansson
5daf07704a
Fix that changing a store should mark the store attribute as changed
2011-10-25 17:22:52 -05:00
Vijay Dev
ddce29bfa1
safeguard against configs missing environment or the database key
2011-10-26 00:41:41 +05:30
Joost Baaij
80bcfb00f7
Added a note that optimistic locking also needs a hidden field to function across web workers.
2011-10-25 13:57:24 +03:00
Xavier Noria
9dd168c402
minor revision to some new code in databases.rake
2011-10-24 14:46:28 +02:00
Xavier Noria
17bf04ff0d
registers PR #2419 in the CHANGELOG
2011-10-24 14:43:46 +02:00
Xavier Noria
b064614ffb
Merge pull request #2419 from dmitriy-kiriyenko/drop_test_database_in_development_when_running_rake_db_drop
...
When running "rake db:drop" also drop test database in development environment
2011-10-24 05:35:06 -07:00
Vijay Dev
8698debcc2
Merge branch 'master' of github.com:lifo/docrails
2011-10-23 01:38:37 +05:30
Vijay Dev
1c1c3fc2c0
minor fixes in the composed_of doc
2011-10-22 23:53:52 +05:30
Greg Reinacker
f092be821d
preserve decimal column attributes after migration
2011-10-21 17:30:39 -06:00
Prem Sichanugrist
f0be2cb192
Add some note on adding index to HABTM table
2011-10-20 17:15:28 -04:00
Prem Sichanugrist
d64e0955d0
Use new migration style in HABTM join table
...
Yes, we're on Rails 3.1 now.
2011-10-20 17:13:01 -04:00
Aaron Patterson
ee9d9fb5fa
Merge pull request #3258 from ileitch/3-1-stable
...
Postgres: Do not attempt to deallocate a statement if the connection is no longer active.
2011-10-20 08:45:22 -07:00
Aaron Patterson
c2f3c9bf56
only use now() on pg!
2011-10-18 13:30:01 -07:00
Aaron Patterson
6a28c512e3
reset prepared statement when schema changes imapact statement results. fixes #3335
2011-10-18 11:20:13 -07:00
Aaron Patterson
76af2818a6
use now() for dates in pg
2011-10-18 10:07:40 -07:00
José Valim
7511f9794d
Merge pull request #3340 from surfacedamage/exclude_destroy_in_all_blank_check
...
Exclude _destroy parameter in :all_blank check (issue #2937 )
2011-10-17 11:15:58 -07:00
Aaron Christy
8510a0bb5a
Exclude _destroy parameter in :all_blank check (issue #2937 )
2011-10-17 13:29:11 -04:00
Aaron Patterson
8919a68b96
Merge pull request #3334 from mperham/master
...
Default timestamps to non-null
2011-10-16 16:14:56 -07:00
Vishnu Atrai
9210458547
fix to remove warning in test cases
2011-10-16 14:29:06 +05:30
Mike Perham
3dbedd2823
Default timestamps to non-null
2011-10-14 21:09:53 -07:00
Vijay Dev
e759c8882a
Merge branch 'master' of github.com:lifo/docrails
2011-10-14 22:21:40 +05:30
Christian Bäuerlein
c6f0461e89
Consider attempted action in exception message of ActiveRecord::StaleObjectError
2011-10-14 18:20:41 +02:00
Christian Bäuerlein
410fa4cf7c
Includes stale record in StaleObjectError
2011-10-14 16:28:02 +02:00
Jeremy Kemper
8cbe826958
Rails 4 is just around the corner. Stuck with 1.8 until then.
2011-10-13 16:11:00 -07:00
Jeremy Kemper
0a9b6de4d2
Tests gotta run in 1.8 too
2011-10-13 15:54:53 -07:00
David Heinemeier Hansson
85b64f98d1
Added ActiveRecord::Base.store for declaring simple single-column key/value stores [DHH]
2011-10-13 16:24:22 -05:00
Steve Bourne
e552fe16d4
change activerecord query conditions example to avoid 'type' as column name
...
'Type' is a reserved column for STI. Changed conditions example to
avoid using that column name as an example. The example isn't
STI-related (and mentioning STI here is needless clutter), so changing
to avoid accidentally encouraging users to use 'type' as a column name
for other purposes.
2011-10-12 10:46:08 -07:00
Vijay Dev
e9413b5de3
Merge pull request #3274 from arunagw/warning_removed_mysql2
...
ambiguous first argument; put parentheses or even spaces Warning removed!
2011-10-10 04:39:18 -07:00
Josef Šimánek
ceb65a639c
Active Record changelog mistakes
2011-10-10 12:19:31 +03:00
Arun Agrawal
af7eeaafdb
ambiguous first argument; put parentheses or even spaces Warning removed!
2011-10-10 14:16:45 +05:30
Jon Leighton
3456ef1119
Use broken YAML that will fail with Syck as well as Psych. Fixes test_broken_yaml_exception in fixtures_test.rb on Ruby 1.8.7.
...
Cherry-pick from 3-1-stable: b8d46924e7
2011-10-09 16:47:53 -07:00
Jeremy Kemper
8dba127188
Remove stray whitespace
2011-10-09 14:21:12 -07:00
Joseph Palermo
c90e5ce779
Only use LOWER for mysql case insensitive uniqueness check when column has a case sensitive collation.
2011-10-09 13:14:07 -07:00
Jeremy Kemper
bedd6dcd43
Merge pull request #500 from cyril/patch-1
...
Use quotes for command substitution
2011-10-08 20:29:56 -07:00
Arun Agrawal
34d950b066
Fixed BodyProxy.new for tests! for wrong argument
2011-10-08 10:01:58 +05:30
Mark J. Titorenko
f41b58d3b2
use thread locals and an instance variable within QueryCache#BodyProxy to maintain appropriate linkage with AR database connection across threads
2011-10-07 10:05:51 +01:00
Aaron Patterson
3088d23647
Merge pull request #3232 from Juanmcuello/pg_prepared_statements
...
Use the schema_search_path in prepared statements.
2011-10-06 20:08:05 -07:00
Vijay Dev
33799c8fc3
Merge pull request #3203 from jrmehle/fix_clone_structure
...
db:test:clone_structure if path to .sql file contains spaces or dashes
2011-10-06 02:13:36 -07:00
Jeremy Kemper
999b7ed94d
Transactional fixtures enlist all active database connections.
...
You can use multiple databases in your tests without disabling transactional fixtures.
2011-10-05 19:10:18 -07:00