aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/schema_dumper.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* | reduce number of StringsAkira Matsuda2012-06-061-1/+1
| |
* | Corrected grammatical errors in schema_dumper and scoping/defaultdcurtis2012-04-101-1/+1
| |
* | Merge pull request #2621 from icco/masterAaron Patterson2012-03-261-1/+1
|\ \ | | | | | | Issue with schema dump
| * | Not checking for nil is apparently a lot faster.Nat Welch2011-09-211-1/+1
| | |
| * | From @dasch's recommendation.Nat Welch2011-08-221-1/+1
| | |
| * | Fixes bug with schema dumper when using with Padrino.Nat Welch2011-08-211-1/+1
| | |
* | | Made schema dumper recognize partial indices' where statementsMarcelo Silveira2012-02-091-0/+2
| |/ |/|
* | just use the list of formatting keys we care aboutAaron Patterson2012-01-041-1/+1
| |
* | fix some formattingAaron Patterson2012-01-041-2/+6
| |
* | use regular expression or statement. loltargetrichenvironmentAaron Patterson2012-01-041-1/+1
| |
* | Use `show index from`. We could fix `pk_and_sequence_for` method's ↵kennyj2011-11-191-3/+1
| | | | | | | | performance problem (GH #3678)
* | Only used detailed schema introspection when doing a schema dump.Christos Zisopoulos2011-11-181-1/+3
| | | | | | Fixes #3678
* | AR changes to support creating ordered (asc, desc) indexesVlad Jebelev2011-11-041-0/+3
|/
* dump IO encoding value along with schema.rb so the file can be reloaded. ↵Aaron Patterson2011-07-291-0/+4
| | | | fixes #1592
* Corrected some typos and American vs. Queen's English issuesLee Reilly2011-05-291-1/+1
|
* Remove extra white spaces on ActiveRecord docs.Sebastian Martinez2011-05-231-1/+1
|
* kill unused variable warningsAaron Patterson2011-01-111-1/+1
|
* rolling out migrated_at until I can fix the buildAaron Patterson2010-12-011-12/+4
|
* clear schema_migrations in Schema.defineJosh Susser2010-12-011-5/+3
|
* name in schema_migrations, migrations in schema dumpJosh Susser2010-12-011-0/+10
|
* Revert "removing unused variable"Aaron Patterson2010-10-261-1/+1
| | | | This reverts commit 3e4ede81d6b1ff3ea89eca33715a5a0d2f524dcf.
* removing unused variableAaron Patterson2010-10-231-1/+1
|
* no need to check for nilNeeraj Singh2010-10-171-3/+3
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* lengths will be nil or an arrayAaron Patterson2010-10-031-2/+2
|
* remove a few function callsAaron Patterson2010-10-031-3/+5
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-2/+2
| | | | 's/[ \t]*$//' -i {} \;)
* Removing most of the symbol to proc usage in Active RecordPrem Sichanugrist2010-08-131-1/+1
| | | | This will hopefully make Active Record run a bit more faster.
* fixing whitespace errorsAaron Patterson2010-08-051-9/+9
|
* Adds title where needed.Rizwan Reza2010-06-161-6/+9
|
* Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-111-6/+6
|
* Make sure schema dumper doesnt throw up when there are no index lengthsPratik Naik2010-05-091-1/+3
|
* Revert "Revert "Add index length support for MySQL [#1852 state:open]""Pratik Naik2010-05-091-0/+1
| | | | This reverts commit 6626833db13a69786f9f6cd56b9f53c4017c3e39.
* Revert "Add index length support for MySQL [#1852 state:open]"José Valim2010-05-081-1/+0
| | | | | | | | | | | | | This commit breaks dumping a few tables, as the sessions table. To reproduce, just create a new application and: rake db:sessions:create rake db:migrate rake db:test:prepare And then look at the db/schema.rb file (ht: Sam Ruby). This reverts commit 5b95730edc33ee97f53da26a3868eb983305a771.
* Add index length support for MySQL [#1852 state:resolved]Emili Parreno2010-05-081-0/+1
| | | | | | | | | | | | Example: add_index(:accounts, :name, :name => 'by_name', :length => 10) => CREATE INDEX by_name ON accounts(name(10)) add_index(:accounts, [:name, :surname], :name => 'by_name_surname', :length => {:name => 10, :surname => 15}) => CREATE INDEX by_name_surname ON accounts(name(10), surname(15)) Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Don't define a default primary key in the schema dumper.Tristan Dunn2009-08-081-1/+0
| | | | | | [#1908 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add support for dumping non-standard primary keys when using the SQLite3 ↵Hongli Lai (Phusion)2009-07-071-1/+5
| | | | | | adapter. Fix unit tests so that this feature is tested for all adapters. [#2868 state:resolved] Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local>
* 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