aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/schema_dumper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Revert "checking in the abstractions for valid type checking:"Jon Leighton2013-02-151-1/+1
| | | | | | | | | | | | | | | | This reverts commit c321b309a9a90bbfa0912832c11b3fef52e71840. Conflicts: activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb Reason: failing test 1) Error: test_valid_column(ActiveRecord::ConnectionAdapters::SQLite3AdapterTest): NoMethodError: undefined method `column' for test/cases/adapters/sqlite3/sqlite3_adapter_test.rb:29:in `test_valid_column'
* Merge pull request #9204 from ranjaykrishna/col-probAaron Patterson2013-02-121-1/+1
|\ | | | | schema dumper tests now conducted by ActiveRecord::Base.Connection
| * checking in the abstractions for valid type checking:Ranjay Krishna2013-02-121-1/+1
| |
* | Do not print anything related to extensions when they don't none existCarlos Antonio da Silva2013-02-061-4/+6
| | | | | | | | | | When extensions are supported but there's no one enabled in the database, we should not print anything related to them in schema.rb.
* | Add blank line after extensions to separate from tables in schemaCarlos Antonio da Silva2013-02-061-0/+1
| |
* | Fix indentation of extensions in schemaCarlos Antonio da Silva2013-02-061-4/+2
| |
* | add ActiveRecord::AbstractAdapter#extensions and ↵Justin George2013-02-061-0/+12
|/ | | | ActiveRecord::ConnectionAdapters::PostgreSQLAdapter#extensions to allow dumping of enabled extensions to schema.rb, add ActiveRecord::SchemaDumper#extensions to dump extensions to schema.rb
* Move to the schema-migrations-metadata branch.Jeremy Kemper2012-12-091-16/+5
| | | | | | | | | | | | | | | | | | | | | | | | Pending work on graceful app upgrades. Revert "Merge pull request #8439 from joshsusser/fixes" This reverts commit ce8ac39338f86388e70356b3a470b3ea443802ae, reversing changes made to b0e7b6f67c984d4b1502e801781ed75fad681633. Revert "Merge pull request #8431 from joshsusser/schemadump" This reverts commit 036d3e1c2b65c4b8cbd23de2e20ad67b9b756182, reversing changes made to 0c692f4d121792117b6a71e5ed590a31c3b9d12e. Revert "Merge branch 'joshsusser-master' into merge" This reverts commit 0c692f4d121792117b6a71e5ed590a31c3b9d12e, reversing changes made to 2e299fca715b083a60222a85e48f9d3b8dd8ce93. Conflicts: activerecord/CHANGELOG.md activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb activerecord/test/cases/schema_dumper_test.rb
* dump schema.rb without :version optionJosh Susser2012-12-051-4/+2
|
* Add migration history to schema.rb dumpJosh Susser2012-12-021-2/+15
|
* Moves column dump specific code to a module included in AbstractAdapterDan McClain2012-09-141-29/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Having column related schema dumper code in the AbstractAdapter. The code remains the same, but by placing it in the AbstractAdapter, we can then overwrite it with Adapter specific methods that will help with Adapter specific data types. The goal of moving this code here is to create a new migration key for PostgreSQL's array type. Since any datatype can be an array, the goal is to have ':array => true' as a migration option, turning the datatype into an array. I've implemented this in postgres_ext, the syntax is shown here: https://github.com/dockyard/postgres_ext#arrays Adds array migration support Adds array_test.rb outlining the test cases for array data type Adds pg_array_parser to Gemfile for testing Adds pg_array_parser to postgresql_adapter (unused in this commit) Adds schema dump support for arrays Adds postgres array type casting support Updates changelog, adds note for inet and cidr support, which I forgot to add before Removing debugger, Adds pg_array_parser to JRuby platform Removes pg_array_parser requirement, creates ArrayParser module used by PostgreSQLAdapter
* Dump schema using new style hashKonstantin Shabanov2012-09-081-10/+10
|
* Merge pull request #4396 from kennyj/fix_4259Rafael Mendonça França2012-06-201-4/+8
|\ | | | | | | Fix GH #4259. When we execute schema dumper, we must remove table_name_prefix and table_name_suffix.
| * Fix GH #4259. We must remove table_name_prefix and table_name_suffix, when ↵kennyj2012-01-101-4/+8
| | | | | | | | we execute schema dumper.
* | 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>