aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* hashes are ordered, so just use the columns_hash ivarAaron Patterson2013-03-141-3/+3
|
* use the method so we do not depend on internal ivarsAaron Patterson2013-03-141-1/+1
|
* extract factory method and push common code up to abstract adapterAaron Patterson2013-03-141-2/+5
|
* update docs, change_table does not use TableDefinition.Yves Senn2013-02-281-3/+3
|
* Revert "Revert "Merge pull request #9206 from ranjaykrishna/use_define_method""Jon Leighton2013-02-151-18/+13
| | | | | | This reverts commit 8aa4603a5adaa56c818a7bd1c0b761b4ecca3d3e. Reverting the revert because I reverted the wrong thing! Fail.
* Revert "Merge pull request #9206 from ranjaykrishna/use_define_method"Jon Leighton2013-02-151-13/+18
| | | | | | | | | | | | | This reverts commit 1fc6876b57f2e1d31731e74eb4271b5655e746d2, reversing changes made to 0268b5d8cdc3c5a1337462135f0a326a2654ba1a. 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'
* reverted back our changes and added in the new define_methodRanjay Krishna2013-02-121-18/+13
|
* Differentiate between remove_column and remove_columns. Make remove_column ↵Marc-Andre Lafortune2012-12-211-1/+1
| | | | | | reversible. [#8267]
* Simplify change_table and avoid duplicated logicMarc-Andre Lafortune2012-12-211-14/+2
|
* revises a RDoc example to make it idiomaticXavier Noria2012-12-071-8/+8
| | | | | | The force flag suggests the original was probably copied from some db/schema.rb. Thanks to Josh Susser for spotting and reporting this.
* Add rename_index to change_table.Jarek Radosz2012-11-191-0/+8
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-11-031-21/+21
|\ | | | | | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/mime_responds.rb activerecord/lib/active_record/attribute_methods.rb guides/source/working_with_javascript_in_rails.md
| * Migration of docs to 1.9 hash syntaxAvnerCohen2012-10-231-21/+21
| |
* | raise `ArgumentError` when redefining the primary key column. Closes #6378Yves Senn2012-10-281-0/+9
|/
* load active_support/core_ext/object/blank in active_support/railsXavier Noria2012-08-021-1/+0
|
* revert Default timestamps to non-nullDave Kroondyk2012-07-181-1/+1
| | | | | | | Commit 3dbedd2 added NOT NULL constraints to timestamps. Commit fcef728 started to revert this, but was incomplete. With this commit, 3dbedd2 should be fully reverted and timestamps will no longer default to NOT NULL.
* Don't need to use delete in the options hashRafael Mendonça França2012-07-031-1/+1
|
* Refactor references schema definitionsAleksey Magusev2012-07-031-18/+12
|
* Integer limit out of range should be allowed to raise. Closes #6272Erich Menge2012-05-161-1/+1
|
* remove unnecessary 'examples' noise [ci skip]Vijay Dev2012-05-111-13/+11
|
* Refactored remove_columnEdgars Beigarts2012-05-021-1/+1
|
* Automatically create indexes for references/belongs_to statements in migrations.Joshua Wood2012-04-141-4/+20
|
* Add documentation for IndexDefinition.Waseem Ahmad2012-03-021-0/+3
|
* Made schema dumper recognize partial indices' where statementsMarcelo Silveira2012-02-091-1/+1
|
* fix commentsVijay Dev2011-12-091-4/+2
|
* Use a hash to look up column definitionsAaron Patterson2011-12-071-2/+3
|
* try to normalize the objects passed to column()Aaron Patterson2011-12-071-9/+11
|
* automatically add the column definition to the columns list if creating a ↵Aaron Patterson2011-12-071-12/+21
| | | | new one
* stop calling String#to_s so frequentlyAaron Patterson2011-12-071-3/+4
|
* self.up, self.down => up, downAkira Matsuda2011-11-071-3/+2
|
* AR changes to support creating ordered (asc, desc) indexesVlad Jebelev2011-11-041-1/+1
|
* Default timestamps to non-nullMike Perham2011-10-141-1/+1
|
* Changed the default value for the options argument on ↵Grant Neufeld2011-06-181-1/+1
| | | | | | | ActiveRecord::ConnectionAdapters::Table#column_exists? from nil to an empty Hash {}. That method calls through to ActiveRecord::ConnectionAdapters::SchemaStatements##column_exists? expects options to be a Hash. When options was nil, an error would occur in cases where the column did exist because the called method attempted to perform a key lookup on options.
* Update remove_index documentationLucia Escanellas2011-06-171-5/+5
| | | | | * Changes should better reflect present code behavior * Related to issue: https://github.com/rails/rails/issues/1624
* Fixes on schema_definitions docsSebastian Martinez2011-05-031-3/+3
|
* fixed-fonts on SchemaDefinitionsSebastian Martinez2011-05-021-3/+3
|
* moving AR::ConnectionAdapters::Column to its own fileAaron Patterson2011-02-011-263/+0
|
* column will use coder to typecase value when it is availableAaron Patterson2011-02-011-0/+2
|
* coders can be assigned to columnsAaron Patterson2011-02-011-1/+4
|
* dry up our case / when statementsAaron Patterson2011-02-011-34/+31
|
* expand mulasgn for enhancing readabilityAaron Patterson2011-01-311-6/+9
|
* always return the identity function from type_cast_codeAaron Patterson2011-01-281-1/+1
|
* use an identity conversion to avoid conditional codesAaron Patterson2011-01-281-2/+2
|
* all columns respond to string_to_binary, so no need to check respond_to?Aaron Patterson2010-10-121-0/+9
|
* eliminating method_missing on TableDefinitionAaron Patterson2010-09-291-14/+6
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-3/+3
| | | | '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.
* standarizes the use of the article "an" for "SQL" and "SQLite"Xavier Noria2010-08-051-1/+1
|
* ensuring that description does not exceed 100 columnsNeeraj Singh2010-08-021-4/+6
|
* Add column and index query methods to ActiveRecord::SchemaAndrew White2010-06-261-0/+10
| | | | | | [#4219 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>