aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/schema_dumper.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Schema dumper now records scale 0 decimal columns as decimal not integer.Giles Alexander2009-06-011-2/+9
| | | | | | | | | | The schema dumper would dump out any decimal or numeric column that had a zero scale as an integer column. This will cause problems for very large precision columns on some DBMSs, particularly PostgreSQL. It also looks strange to see your column change type after moving through schema.rb. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2741 state:committed]
* Cherry-pick core extensionsJeremy Kemper2009-05-131-2/+2
|
* Merge with docrailsPratik Naik2008-12-071-0/+2
|
* Ensure indices don't flip order in schema.rb [#1266 state:committed]Jordi Bunster2008-10-301-6/+12
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Deal with MySQL's quirky handling of defaults and blob/text columnsFrederick Cheung2008-09-141-1/+1
| | | | | | [#1043 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge docrails.Pratik Naik2008-05-251-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add support for interleaving migrations by storing which migrations have run ↵Rick Olson2008-04-091-3/+3
| | | | | | 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
* Set the record straight on the purpose and utility of db/schema.rbDavid Heinemeier Hansson2007-11-091-2/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8124 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* minor speedups + forward-compat syntaxJeremy Kemper2007-09-131-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7471 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Sexy dumper now has its groove on (closes #8281) [Chris Wanstrath]David Heinemeier Hansson2007-05-111-9/+24
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Schema dumper quotes date :default values.Jeremy Kemper2006-08-021-1/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4650 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r4704@asus: jeremy | 2006-06-27 12:00:19 -0700Jeremy Kemper2006-07-081-3/+6
| | | | | | | | | | | | | | | decimal r4705@asus: jeremy | 2006-06-27 12:20:47 -0700 current_adapter? checks whether any of its arguments is the name of the current adapter class r4834@asus: jeremy | 2006-07-08 13:08:24 -0700 Room to float. r4835@asus: jeremy | 2006-07-08 13:09:18 -0700 Give lock test a few chances. r4836@asus: jeremy | 2006-07-08 13:12:05 -0700 Numeric and decimal columns map to BigDecimal instead of Float. Those with scale 0 map to Integer. Closes #5454. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4596 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that StringIO is always available for the Schema dumper. [Marcel ↵Marcel Molina2006-04-301-0/+2
| | | | | | Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4315 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Prettify output of schema_dumper by making things line up. Closes #4241 ↵Marcel Molina2006-04-261-5/+17
| | | | | | [Caio Chassot <caio@v2studio.com>] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4273 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* PostgreSQL: smarter schema dumps using pk_and_sequence_for(table). Closes #2920.Jeremy Kemper2006-02-091-2/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3565 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ActiveRecord::Base.schema_ignore_tables => ↵Tobias Lütke2005-12-241-2/+7
| | | | | | ActiveRecord::SchemaDumper.ignore_tables git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3347 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* SchemaDumper now doesn't fail anymore when there are unknown column types in ↵Tobias Lütke2005-12-241-18/+38
| | | | | | the schema. Instead the table is ignored and a Comment is left in the schema.rb also added ActiveRecord::Base.schema_ignore_tables for dealing with funky tables like the tesearch2 ones. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* PostgreSQL returns the path type wrapped in quotes.Marcel Molina2005-10-091-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :force option to create_table that'll try to drop the table if it ↵David Heinemeier Hansson2005-10-061-0/+1
| | | | | | already exists before creating git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2473 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Schema dumper should emit ":default => false" if the default for a column is ↵Jamis Buck2005-10-051-2/+2
| | | | | | false git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2464 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactored the AbstractAdapter to be a lot less scary. Cleaned up the docs ↵David Heinemeier Hansson2005-09-251-1/+1
| | | | | | and style for the OSS adapters git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Okay, you can have an extra spaceDavid Heinemeier Hansson2005-09-251-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Just include activerecord/schema with AR so it doesnt need to be dumpedDavid Heinemeier Hansson2005-09-241-6/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2322 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add ActiveRecord::SchemaDumper for dumping a DB schema to a pure-ruby file, ↵Jamis Buck2005-09-231-0/+87
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