Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert "Revert "Merge pull request #9206 from ranjaykrishna/use_define_method"" | Jon Leighton | 2013-02-15 | 1 | -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 Leighton | 2013-02-15 | 1 | -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_method | Ranjay Krishna | 2013-02-12 | 1 | -18/+13 |
| | |||||
* | Differentiate between remove_column and remove_columns. Make remove_column ↵ | Marc-Andre Lafortune | 2012-12-21 | 1 | -1/+1 |
| | | | | | | reversible. [#8267] | ||||
* | Simplify change_table and avoid duplicated logic | Marc-Andre Lafortune | 2012-12-21 | 1 | -14/+2 |
| | |||||
* | revises a RDoc example to make it idiomatic | Xavier Noria | 2012-12-07 | 1 | -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 Radosz | 2012-11-19 | 1 | -0/+8 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-11-03 | 1 | -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 syntax | AvnerCohen | 2012-10-23 | 1 | -21/+21 |
| | | |||||
* | | raise `ArgumentError` when redefining the primary key column. Closes #6378 | Yves Senn | 2012-10-28 | 1 | -0/+9 |
|/ | |||||
* | load active_support/core_ext/object/blank in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | revert Default timestamps to non-null | Dave Kroondyk | 2012-07-18 | 1 | -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 hash | Rafael Mendonça França | 2012-07-03 | 1 | -1/+1 |
| | |||||
* | Refactor references schema definitions | Aleksey Magusev | 2012-07-03 | 1 | -18/+12 |
| | |||||
* | Integer limit out of range should be allowed to raise. Closes #6272 | Erich Menge | 2012-05-16 | 1 | -1/+1 |
| | |||||
* | remove unnecessary 'examples' noise [ci skip] | Vijay Dev | 2012-05-11 | 1 | -13/+11 |
| | |||||
* | Refactored remove_column | Edgars Beigarts | 2012-05-02 | 1 | -1/+1 |
| | |||||
* | Automatically create indexes for references/belongs_to statements in migrations. | Joshua Wood | 2012-04-14 | 1 | -4/+20 |
| | |||||
* | Add documentation for IndexDefinition. | Waseem Ahmad | 2012-03-02 | 1 | -0/+3 |
| | |||||
* | Made schema dumper recognize partial indices' where statements | Marcelo Silveira | 2012-02-09 | 1 | -1/+1 |
| | |||||
* | fix comments | Vijay Dev | 2011-12-09 | 1 | -4/+2 |
| | |||||
* | Use a hash to look up column definitions | Aaron Patterson | 2011-12-07 | 1 | -2/+3 |
| | |||||
* | try to normalize the objects passed to column() | Aaron Patterson | 2011-12-07 | 1 | -9/+11 |
| | |||||
* | automatically add the column definition to the columns list if creating a ↵ | Aaron Patterson | 2011-12-07 | 1 | -12/+21 |
| | | | | new one | ||||
* | stop calling String#to_s so frequently | Aaron Patterson | 2011-12-07 | 1 | -3/+4 |
| | |||||
* | self.up, self.down => up, down | Akira Matsuda | 2011-11-07 | 1 | -3/+2 |
| | |||||
* | AR changes to support creating ordered (asc, desc) indexes | Vlad Jebelev | 2011-11-04 | 1 | -1/+1 |
| | |||||
* | Default timestamps to non-null | Mike Perham | 2011-10-14 | 1 | -1/+1 |
| | |||||
* | Changed the default value for the options argument on ↵ | Grant Neufeld | 2011-06-18 | 1 | -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 documentation | Lucia Escanellas | 2011-06-17 | 1 | -5/+5 |
| | | | | | * Changes should better reflect present code behavior * Related to issue: https://github.com/rails/rails/issues/1624 | ||||
* | Fixes on schema_definitions docs | Sebastian Martinez | 2011-05-03 | 1 | -3/+3 |
| | |||||
* | fixed-fonts on SchemaDefinitions | Sebastian Martinez | 2011-05-02 | 1 | -3/+3 |
| | |||||
* | moving AR::ConnectionAdapters::Column to its own file | Aaron Patterson | 2011-02-01 | 1 | -263/+0 |
| | |||||
* | column will use coder to typecase value when it is available | Aaron Patterson | 2011-02-01 | 1 | -0/+2 |
| | |||||
* | coders can be assigned to columns | Aaron Patterson | 2011-02-01 | 1 | -1/+4 |
| | |||||
* | dry up our case / when statements | Aaron Patterson | 2011-02-01 | 1 | -34/+31 |
| | |||||
* | expand mulasgn for enhancing readability | Aaron Patterson | 2011-01-31 | 1 | -6/+9 |
| | |||||
* | always return the identity function from type_cast_code | Aaron Patterson | 2011-01-28 | 1 | -1/+1 |
| | |||||
* | use an identity conversion to avoid conditional codes | Aaron Patterson | 2011-01-28 | 1 | -2/+2 |
| | |||||
* | all columns respond to string_to_binary, so no need to check respond_to? | Aaron Patterson | 2010-10-12 | 1 | -0/+9 |
| | |||||
* | eliminating method_missing on TableDefinition | Aaron Patterson | 2010-09-29 | 1 | -14/+6 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -3/+3 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Removing most of the symbol to proc usage in Active Record | Prem Sichanugrist | 2010-08-13 | 1 | -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 Noria | 2010-08-05 | 1 | -1/+1 |
| | |||||
* | ensuring that description does not exceed 100 columns | Neeraj Singh | 2010-08-02 | 1 | -4/+6 |
| | |||||
* | Add column and index query methods to ActiveRecord::Schema | Andrew White | 2010-06-26 | 1 | -0/+10 |
| | | | | | | [#4219 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Better code formatting and proper line numbers for stack traces | Neeraj Singh | 2010-05-14 | 1 | -2/+2 |
| | | | | | | [#4596 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Revert "Revert "Add index length support for MySQL [#1852 state:open]"" | Pratik Naik | 2010-05-09 | 1 | -1/+1 |
| | | | | This reverts commit 6626833db13a69786f9f6cd56b9f53c4017c3e39. | ||||
* | Revert "Add index length support for MySQL [#1852 state:open]" | José Valim | 2010-05-08 | 1 | -1/+1 |
| | | | | | | | | | | | | | 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 Parreno | 2010-05-08 | 1 | -1/+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> |