Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | prefer `drop_table if_exists: true` over raw SQL. | Yves Senn | 2015-02-18 | 1 | -1/+1 |
| | | | | | | | /cc @yahonda This makes it easier for third party adapters to run our tests, even if that database does not support IF EXISTS. | ||||
* | rm `Type#number?` | Sean Griffin | 2015-02-07 | 1 | -1/+0 |
| | | | | | This predicate is only used in `query_attribute`, and is relatively easy to remove without adding a bunch of is a checks. | ||||
* | Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 ↵ | Vipul A M | 2015-02-03 | 1 | -1/+0 |
| | | | | onwards. | ||||
* | Remove most type related predicates from `Column` | Sean Griffin | 2015-01-30 | 1 | -2/+4 |
| | | | | | | Remaining are `limit`, `precision`, `scale`, and `type` (the symbol version). These will remain on the column, since they mirror the options to the `column` method in the schema definition DSL | ||||
* | Should escape regexp wildcard character `.` | Ryuta Kamizono | 2015-01-19 | 1 | -1/+1 |
| | | | | | `.` is regexp meta character. It should be escape for `assert_match` correctly. | ||||
* | Prefer `array?` rather than `array` | Ryuta Kamizono | 2015-01-04 | 1 | -1/+1 |
| | | | | | | Slightly refactoring `PostgreSQLColumn`. `array` should be readonly. `default_function` should be initialized by `super`. `sql_type` has been removed `[]`. Since we already choose to remove it we should not change. | ||||
* | Correctly ignore `case_sensitive` for UUID uniqueness validation | Sean Griffin | 2014-12-26 | 1 | -0/+17 |
| | | | | | | | | I think we should deprecate this behavior and just error if you tell us to do a case insensitive comparison for types which are not case sensitive. Partially reverts 35592307 Fixes #18195 | ||||
* | Dump the default `nil` for PostgreSQL UUID primary key. | Ryuta Kamizono | 2014-12-26 | 1 | -0/+6 |
| | |||||
* | `force: :cascade` to recreate tables referenced by foreign-keys. | Yves Senn | 2014-12-19 | 1 | -1/+1 |
| | |||||
* | Relax the UUID regex | Godfrey Chan | 2014-12-18 | 1 | -3/+7 |
| | | | | | | | | Apparently PG does not validate against RFC 4122. The intent of the original patch is just to protect against PG errors (which potentially breaks txns, etc) because of bad user input, so we shouldn't try any harder than PG itself. Closes #17931 | ||||
* | tests, move schema shorthand assertions into pg specific tests. | Yves Senn | 2014-12-02 | 1 | -0/+6 |
| | |||||
* | 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 |