Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #21589 from ↵ | Jeremy Daer | 2015-09-19 | 1 | -2/+6 |
|\ | | | | | | | | | | | kamipo/eliminate_duplicated_visit_table_definition Eliminate the duplication code of `visit_TableDefinition` | ||||
| * | Eliminate the duplication code of `visit_TableDefinition` | Ryuta Kamizono | 2015-09-16 | 1 | -5/+13 |
| | | |||||
* | | Merge pull request #21608 from ↵ | Jeremy Daer | 2015-09-19 | 1 | -6/+4 |
|\ \ | | | | | | | | | | | | | kamipo/eliminate_duplicated_options_include_default_method Eliminate the duplicated `options_include_default?` method | ||||
| * | | Eliminate the duplicated `options_include_default?` method | Ryuta Kamizono | 2015-09-13 | 1 | -6/+4 |
| |/ | | | | | | | Follow up 7ba2cd06. | ||||
* / | Correctly dump composite primary key | Ryuta Kamizono | 2015-09-20 | 1 | -3/+10 |
|/ | | | | | | | | | Example: create_table :barcodes, primary_key: ["region", "code"] do |t| t.string :region t.integer :code end | ||||
* | Merge pull request #19978 from kamipo/collation_option_support_for_postgresql | Rafael Mendonça França | 2015-05-03 | 1 | -0/+1 |
|\ | | | | | PostgreSQL: `:collation` support for string and text columns | ||||
| * | Move the collation handling code from the MySQL adapter to common classes | Ryuta Kamizono | 2015-05-04 | 1 | -0/+1 |
| | | | | | | | | | | Some databases like MySQL allow defining collation charset for specific columns. | ||||
* | | Change the `visit_AddColumn` visiblity for the internal API | Ryuta Kamizono | 2015-05-03 | 1 | -5/+5 |
|/ | |||||
* | Use `delegate` to call the methods to `@conn` | Ryuta Kamizono | 2015-02-19 | 1 | -16/+3 |
| | |||||
* | Refactor `quote_default_expression` | Ryuta Kamizono | 2015-02-11 | 1 | -6/+1 |
| | | | | | | | `quote_default_expression` and `quote_default_value` are almost the same handling for do not quote default function of `:uuid` columns. Rename `quote_default_value` to `quote_default_expression`, and remove duplicate code. | ||||
* | An array type is a part of `sql_type` | Ryuta Kamizono | 2015-02-08 | 1 | -1/+1 |
| | | | | | | `sql_type` is reused in `lookup_cast_type`. If making it a part of `sql_type` when handled array option first, it isn't necessary to do again. | ||||
* | `sql_type` has been determined already when quoting defaults | Ryuta Kamizono | 2015-01-04 | 1 | -4/+2 |
| | | | | No need to call `type_to_sql` again. | ||||
* | Stop passing the column to the connection adapter when quoting defaults | Sean Griffin | 2015-01-01 | 1 | -2/+2 |
| | | | | | The column is no longer used for anything besides type casting, which is what we're trying to remove from the column entirely. | ||||
* | Add bigint primary key support for MySQL. | Ryuta Kamizono | 2014-12-28 | 1 | -0/+1 |
| | | | | | | | Example: create_table :foos, id: :bigint do |t| end | ||||
* | Support for any type primary key. | Ryuta Kamizono | 2014-12-28 | 1 | -1/+5 |
| | |||||
* | Merge pull request #17799 from kamipo/refactor_add_column_options | Rafael Mendonça França | 2014-11-28 | 1 | -2/+2 |
|\ | | | | | Refactor `add_column_options!`, to move the quoting of default value for :uuid in `quote_value`. | ||||
| * | Rename to `quote_default_expression` from `quote_value` | Ryuta Kamizono | 2014-11-28 | 1 | -2/+2 |
| | | |||||
* | | Refactor `SchemaCreation#visit_AddColumn` | Ryuta Kamizono | 2014-11-27 | 1 | -3/+1 |
|/ | |||||
* | Add and Remove string/strip require | Arthur Neves | 2014-09-02 | 1 | -0/+2 |
| | | | | | | | Method .strip_heredoc is defined in active_support/core_ext/string/strip.rb so we need to require it. [fixes #16677] | ||||
* | Always pass a column with a type object to quote | Sean Griffin | 2014-06-28 | 1 | -0/+5 |
| | | | | | | | | The only case where we got a column that was not `nil`, but did not respond to `cast_type` was when type casting the default value during schema creation. We can look up the cast type, and add that object to the column definition. Will allow us to consistently rely on the type objects for type casting in all directions. | ||||
* | fk: review corrections: indent, visibility, syntax, wording. | Yves Senn | 2014-06-26 | 1 | -18/+18 |
| | |||||
* | fk: use random digest names | Yves Senn | 2014-06-26 | 1 | -1/+1 |
| | | | | | | The name of the foreign key is not relevant from a users perspective. Using random names resolves the urge to rename the foreign key when the respective table or column is renamed. | ||||
* | fk: raise for invalid :on_update / :on_delete values | Yves Senn | 2014-06-26 | 1 | -3/+8 |
| | |||||
* | fk: support for on_update | Yves Senn | 2014-06-26 | 1 | -2/+3 |
| | |||||
* | fk: rename `dependent` to `on_delete` | Yves Senn | 2014-06-26 | 1 | -6/+5 |
| | |||||
* | fk: support dependent option (:delete, :nullify and :restrict). | Yves Senn | 2014-06-26 | 1 | -1/+12 |
| | |||||
* | fk: generalize using `AlterTable` and `SchemaCreation`. | Yves Senn | 2014-06-26 | 1 | -0/+14 |
| | |||||
* | fix bug on non empty defaults for pg array columns | Luke Steensen | 2014-03-30 | 1 | -1/+7 |
| | | | | fixes #10613 | ||||
* | No need to call to_sym | Rafael Mendonça França | 2014-03-30 | 1 | -2/+2 |
| | | | | It is already called inside type_to_sql method. | ||||
* | support creating temporary tables from queries | Cody Cutrer | 2013-12-14 | 1 | -3/+4 |
| | | | | | also override drop_table in AbstractMySQLAdapter to properly drop temporary tables without committing the transaction | ||||
* | Move `SchemaCreation` to its own file instead of `AbstractAdapter`. | Vipul A M | 2013-11-12 | 1 | -0/+83 |