aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Merge pull request #1163 from amatsuda/sexier_migration_31"Aaron Patterson2011-11-171-8/+2
| | | | | | | | | | This reverts commit 0e407a90413d8a19002b85508d811ccdf2190783, reversing changes made to 533a9f84b035756eedf9fdccf0c494dc9701ba72. Conflicts: activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb activerecord/test/cases/migration_test.rb
* Revert "Merge pull request #3603 from vijaydev/change_table_without_block_arg"Aaron Patterson2011-11-171-12/+7
| | | | | | | | | This reverts commit 81fad6a270ec3cbbb88553c9f2e8200c34fd4d13, reversing changes made to 23101de283de13517e30c4c3d1ecc65525264886. Conflicts: activerecord/test/cases/migration_test.rb
* Adding a deprecation warning for use of the schema_info table.Aaron Patterson2011-11-161-0/+2
|
* Modify change_table to remove the need for the block argument.Vijay Dev2011-11-111-7/+12
|
* Checking the arity of the block passed to create_tableVijay Dev2011-11-101-1/+7
| | | | | | A recent change made to create_table does away with the need for the block argument. Checking the arity will prevent the mixing up of the two syntaxes.
* AR changes to support creating ordered (asc, desc) indexesVlad Jebelev2011-11-041-1/+29
|
* Merge pull request #1163 from amatsuda/sexier_migration_31Aaron Patterson2011-11-041-2/+2
|\ | | | | Sexier migrations
| * No "t." for the migration DSL!Akira Matsuda2011-05-201-2/+2
| | | | | | | | | | Now you can omit |t| block parameter and all the t. from your migration code, that means, the syntax looks more Rails-3-ish, like the routes DSL and ActionMailer DSL. Also, this change won't break any of your existing migration files, since the traditional syntax is still available.
* | dump_schema_information: explicitly order inserts into schema_migrations tableLaust Rud Jacobsen2011-10-311-1/+1
| | | | | | | | | | | | | | This change reduces churn in the db/development_structure.sql file when using :sql as active_record.schema_format, and makes comparing diffs much easier. Test ensures the output SQL-statements are lexically ordered by version.
* | Default timestamps to non-nullMike Perham2011-10-141-2/+2
| |
* | Update remove_index documentationLucia Escanellas2011-06-171-4/+4
| | | | | | | | | | * Changes should better reflect present code behavior * Related to issue: https://github.com/rails/rails/issues/1624
* | No need to pass options which is never usedAkira Matsuda2011-05-291-2/+2
| |
* | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-251-3/+3
|\ \ | | | | | | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/core_ext/kernel/requires.rb
| * | Remove extra white spaces on ActiveRecord docs.Sebastian Martinez2011-05-231-3/+3
| |/
* / Remove extra white-space on some exception messages.Sebastian Martinez2011-05-231-1/+1
|/
* dot missing hereSebastian Martinez2011-04-221-1/+1
|
* Added doc for #table_exists?Sebastian Martinez2011-04-221-0/+4
|
* Remove incorrect comment that a default value of NULL cannot be set with ↵Manuel Meurer2011-03-161-3/+2
| | | | change_column_default.
* Add :bulk => true option to change_tablePratik Naik2011-01-311-31/+59
|
* move ivar to initialize, use triple dot rather than minusAaron Patterson2010-12-161-1/+1
|
* Use Array.wrap instead of using ternaryPiotr Sarnacki2010-12-091-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Allow to run migrations from more than one directoryPiotr Sarnacki2010-12-091-2/+4
|
* rolling out migrated_at until I can fix the buildAaron Patterson2010-12-011-15/+3
|
* tests mostly passJosh Susser2010-12-011-2/+2
| | | | | adjust to work with instance-based migations migrated_at can't be null why must people have last names? it's killing me!
* name in schema_migrations, migrations in schema dumpJosh Susser2010-12-011-0/+4
|
* Add migrated_at column to schema_migrations table.Josh Susser2010-12-011-1/+9
|
* use inheritence to deal with custom methodsAaron Patterson2010-09-291-4/+9
|
* Test add_index and remove_index with a symbol name #4891Étienne Barrié2010-09-281-4/+3
|
* Fix remove_index issue when provided :name is a symbolTim Connor2010-09-261-1/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Fix issue with remove_index and add unit test [#5645 state:resolved]Tim Connor2010-09-181-2/+1
|
* Raise errors when index creation failsTim Connor2010-09-181-4/+2
|
* Revert "Setup explicit requires for files with exceptions. Removed them from ↵José Valim2010-09-021-1/+0
| | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6.
* Setup explicit requires for files with exceptions. Removed them from ↵Łukasz Strzałkowski2010-09-021-0/+1
| | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com>
* 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.
* Allow :name to be a Symbol (was this removed by accident?)wycats2010-08-031-0/+2
|
* copy-edits some docsXavier Noria2010-07-081-6/+5
|
* clarifying how to create non standard primary keyNeeraj Singh2010-07-081-1/+7
|
* Fixed error when removing an index from a table name values, which is a ↵J. Pablo Fernández2010-06-291-1/+1
| | | | | | reserved word, with test. Signed-off-by: José Valim <jose.valim@gmail.com>
* Refactor of column_exists? method and this works with PostgreSQLSantiago Pastorino2010-06-261-12/+6
|
* Add column and index query methods to ActiveRecord::SchemaAndrew White2010-06-261-4/+53
| | | | | | [#4219 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* remove_column should raise an ArgumentError when no columns are passed ↵Jeff Dean2010-06-231-0/+1
| | | | | | [#4803 state:resolved] Signed-off-by: Michael Koziarski <michael@koziarski.com>
* make add_index and remove_index more resilient; new rename_index method; ↵Étienne Barrié2010-05-181-6/+39
| | | | | | | | track database limits [#3452 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Revert "Revert "Add index length support for MySQL [#1852 state:open]""Pratik Naik2010-05-091-1/+22
| | | | This reverts commit 6626833db13a69786f9f6cd56b9f53c4017c3e39.
* Revert "Add index length support for MySQL [#1852 state:open]"José Valim2010-05-081-22/+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 Parreno2010-05-081-1/+22
| | | | | | | | | | | | 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>
* Avoid deprecated String#to_a by using Array.wrap(...) instead of Array(...)Jeremy Kemper2010-04-101-2/+4
|
* remove_index now uses quote_table_name() [#4300 state:resolved]Simon Effenberg2010-04-061-1/+1
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Allow AR::Schema's migrations_path to be overwritten by subclasses. Defaults ↵Jeffrey Hardy2010-01-081-2/+2
| | | | | | | | to 'db/migrate' [#3671 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge commit 'rails/master'Emilio Tagua2009-08-101-2/+2
|\ | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/calculations.rb activerecord/lib/active_record/connection_adapters/mysql_adapter.rb activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb