Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tests, remove unneeded requires. | Yves Senn | 2014-11-06 | 1 | -3/+0 |
| | |||||
* | tests, use SchemaDumpingHelper to dump a specific table. | Yves Senn | 2014-11-06 | 1 | -12/+12 |
| | | | | | This makes debugging the generated schema output much easier. As a side effect it also shaves off 2.5 seconds of test runtime. | ||||
* | add bigserial pk support | Aaron Patterson | 2014-10-29 | 1 | -0/+20 |
| | |||||
* | Added enable_extension! to helper | Abdelkader Boudih | 2014-09-05 | 1 | -5/+6 |
| | |||||
* | adding the exception RecordNotFound to UUID find | JoseLuis Torres | 2014-08-21 | 1 | -0/+14 |
| | |||||
* | Allow to specify a type for foreign key column in migrations | Andrey Novikov | 2014-07-22 | 1 | -1/+1 |
| | | | | [Andrey Novikov & Łukasz Sarnacki] | ||||
* | Treat invalid uuid as nil | Abdelkader Boudih | 2014-07-14 | 1 | -0/+37 |
| | |||||
* | Dump PostgreSQL primary key with custom function as a default. | Andrey Novikov | 2014-07-11 | 1 | -0/+23 |
| | | | | | | | | | | | For example, if use pgcrypto extension in PostgreSQL 9.4 beta 1, where uuid-ossp extension isn't available for moment of writing, and thus to use a gen_random_uuid() method as a primary key default. In this case schema dumper wasn't able to correctly reconstruct create_table statement and lost primary key constraint on schema load. Fixes #16111. | ||||
* | Remove the `text?` predicate from the type objects | Sean Griffin | 2014-07-06 | 1 | -1/+0 |
| | | | | | | | This was only used for uniqueness validations. The first usage was in conjunction with `limit`. Types which cast to string, but are not considered text cannot have a limit. The second case was only with an explicit `:case_sensitive => true` option given by the user. | ||||
* | [Postgresql tests] remove duplicate helper | Abdelkader Boudih | 2014-06-28 | 1 | -12/+3 |
| | |||||
* | test, use `columns_hash[]` in place of `columns.find {}`. | Yves Senn | 2014-05-12 | 1 | -2/+2 |
| | |||||
* | test, reset changed state in PG's uuid tests. | Yves Senn | 2014-05-08 | 1 | -2/+4 |
| | | | | | | | | | | | | | This resulted in some unrelated errors on Traivs: 1) Error: PostgresqlUUIDTest#test_treat_blank_uuid_as_nil: ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR: column "thingy" of relation "uuid_data_type" does not exist LINE 1: INSERT INTO "uuid_data_type" ("thingy") VALUES ($1) RETURNIN... ^ : INSERT INTO "uuid_data_type" ("thingy") VALUES ($1) RETURNING "id" /cc @zuhao | ||||
* | Changed change_column in PG schema_statements.rb to make sure that the ↵ | Eric Chahin | 2014-04-15 | 1 | -0/+13 |
| | | | | uuid_generate function was not being quoted. | ||||
* | Treat blank UUID values as nil | Dmitry Lavrov | 2014-04-03 | 1 | -0/+5 |
| | |||||
* | PostgreSQL, test cases to lock the current column types. | Yves Senn | 2014-03-28 | 1 | -1/+7 |
| | |||||
* | extract common code in `uuid_test.rb`. | Yves Senn | 2014-02-26 | 1 | -60/+57 |
| | |||||
* | move PostgreSQL UUID tests from `datatype_test.rb` to `uuid_test.rb`. | Yves Senn | 2014-02-26 | 1 | -0/+35 |
| | |||||
* | Don't skip tests if we don't need to. | Rafael Mendonça França | 2013-11-08 | 1 | -34/+46 |
| | | | | | | | We can conditional define the tests depending on the adapter or connection. Lets keep the skip for fail tests that need to be fixed. | ||||
* | Dump the default function when the primary key is uuid | Rafael Mendonça França | 2013-10-14 | 1 | -2/+2 |
| | | | | Fixes #12489 | ||||
* | Merge pull request #11382 from kennyj/fix_10751-2 | Rafael Mendonça França | 2013-09-22 | 1 | -0/+1 |
|\ | | | | | | | | | | | | | Dump UUID default functions to schema.rb [2nd version]. Fixes #10751. Conflicts: activerecord/CHANGELOG.md | ||||
| * | Migration dump UUID default functions to schema.rb. Fixes #10751. | kennyj | 2013-07-10 | 1 | -0/+1 |
| | | |||||
* | | Fixed a bug in when using has_many association with :inverse_of option and ↵ | kennyj | 2013-05-08 | 1 | -0/+40 |
|/ | | | | UUID primary key. | ||||
* | fix to remove warning on postgres adapter test. | Akshay Khole | 2013-05-05 | 1 | -1/+1 |
| | | | | | Warning was: "/vagrant/rails/activerecord/test/cases/adapters/postgresql/uuid_test.rb:63: warning: ambiguous first argument; put parentheses or even spaces" | ||||
* | Make SchemaDumper emit "id: :uuid" when appropriate. Fixes #10451. | Brian Buchanan | 2013-05-03 | 1 | -0/+12 |
| | |||||
* | Improve docs for postgresql with uuid primary keys [ci skip] | Carlos Antonio da Silva | 2013-05-01 | 1 | -1/+0 |
| | | | | Introduced in 09ac1776abc0d3482f491f2d49f47bcb3d9a4ad7. | ||||
* | allow override of uuid_generate_v4() default by passing default: nil | Chad Moone | 2013-05-01 | 1 | -0/+31 |
| | | | | without this, it's not possible to use UUID primary keys without uuid-ossp installed and activated | ||||
* | add uuid primary key support | Aaron Patterson | 2013-03-22 | 1 | -0/+10 |
| | |||||
* | you can provide uuid_generate_v4 as the default value for uuid columns | Aaron Patterson | 2013-03-14 | 1 | -0/+43 |