Konstantin Shabanov
b485b8a066
Dump schema using new style hash
2012-09-08 11:09:49 +04:00
Xavier Noria
8f58d6e507
load active_support/core_ext/object/blank in active_support/rails
2012-08-02 21:59:22 +02:00
John Firebaugh
a57990ff51
Call methods on the correct instance in AR::Schema.define
...
Now that migrations support instance methods, we should
use the same instance rather than relying on delegation
to a global instance. This allows subclassing AR::Schema.
2012-05-16 15:19:59 -07:00
Piotr Sarnacki
d0467e08e5
Allow to run migrations from more than one directory
2010-12-09 00:04:36 +01:00
Aaron Patterson
3ec212e3c9
rolling out migrated_at until I can fix the build
2010-12-01 17:08:01 -08:00
Josh Susser
a49de9811a
tests mostly pass
...
adjust to work with instance-based migations
migrated_at can't be null
why must people have last names? it's killing me!
2010-12-01 12:01:56 -08:00
Josh Susser
b07c2c0fd3
clear schema_migrations in Schema.define
2010-12-01 11:01:15 -08:00
Josh Susser
7139aa878c
name in schema_migrations, migrations in schema dump
2010-12-01 10:57:38 -08:00
Aaron Patterson
0bea9fd6be
schema migrations work as instances
2010-11-17 14:26:34 -08:00
Aaron Patterson
8b2f801ed8
converted migrations to support instance methods
2010-11-17 14:26:34 -08:00
Aaron Patterson
1ca18a6f85
fixing whitespace errors
2010-08-05 08:15:22 -07:00
Rizwan Reza
0ebdc26cae
Adds title where needed.
2010-06-16 22:17:05 +04:30
Xavier Noria
76f024ac8d
adds missing requires for Object#blank? and Object#present?
2010-03-28 14:15:02 +02:00
Jeffrey Hardy
652d1c19ea
Allow AR::Schema's migrations_path to be overwritten by subclasses. Defaults to 'db/migrate'
...
[#3671 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-01-08 13:08:23 -08:00
Pratik Naik
98dc582742
Merge docrails.
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-25 12:29:00 +01:00
Rick Olson
8a5a9dcbf6
Add support for interleaving migrations by storing which migrations have run in the new schema_migrations table. Closes #11493 [jordi]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-09 16:20:15 +00:00
Marcel Molina
026973f6a0
Update Schema documentation to use updated sexy migration notation. Closes #10086 [sjgman9]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8089 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-06 18:26:54 +00:00
David Heinemeier Hansson
6b835730de
Makes ActiveRecord::Schema respect AR::Base.table_name_prefix ( closes #3848 ) [rubyonrails@atyp.de]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3648 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-25 23:22:04 +00:00
David Heinemeier Hansson
7a2ce50a93
Improved the Oracle OCI Adapter with better performance for column reflection (from #3210 ), fixes to migrations (from #3476 and #3742 ), tweaks to unit tests (from #3610 ), and improved documentation (from #2446 ) ( closes #3879 ) [Aggregated by schoenm@earthlink.net]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-21 00:00:29 +00:00
Jamis Buck
bcd0968a6f
Update/clean up ActiveRecord documentation (rdoc)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2650 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 16:00:16 +00:00
David Heinemeier Hansson
b3df95985a
Refactored the AbstractAdapter to be a lot less scary. Cleaned up the docs and style for the OSS adapters
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-25 17:56:03 +00:00
David Heinemeier Hansson
66820a4aa7
Just include activerecord/schema with AR so it doesnt need to be dumped
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2322 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-24 17:50:07 +00:00
Jamis Buck
7dc45818dc
Add ActiveRecord::SchemaDumper for dumping a DB schema to a pure-ruby file, making it easier to consolidate large migration lists and port database schemas between databases.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-23 13:29:33 +00:00