aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract/schema_creation.rb
Commit message (Collapse)AuthorAgeFilesLines
* `sql_type` has been determined already when quoting defaultsRyuta Kamizono2015-01-041-4/+2
| | | | No need to call `type_to_sql` again.
* Stop passing the column to the connection adapter when quoting defaultsSean Griffin2015-01-011-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 Kamizono2014-12-281-0/+1
| | | | | | | Example: create_table :foos, id: :bigint do |t| end
* Support for any type primary key.Ryuta Kamizono2014-12-281-1/+5
|
* Merge pull request #17799 from kamipo/refactor_add_column_optionsRafael Mendonça França2014-11-281-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 Kamizono2014-11-281-2/+2
| |
* | Refactor `SchemaCreation#visit_AddColumn`Ryuta Kamizono2014-11-271-3/+1
|/
* Add and Remove string/strip requireArthur Neves2014-09-021-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 quoteSean Griffin2014-06-281-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 Senn2014-06-261-18/+18
|
* fk: use random digest namesYves Senn2014-06-261-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 valuesYves Senn2014-06-261-3/+8
|
* fk: support for on_updateYves Senn2014-06-261-2/+3
|
* fk: rename `dependent` to `on_delete`Yves Senn2014-06-261-6/+5
|
* fk: support dependent option (:delete, :nullify and :restrict).Yves Senn2014-06-261-1/+12
|
* fk: generalize using `AlterTable` and `SchemaCreation`.Yves Senn2014-06-261-0/+14
|
* fix bug on non empty defaults for pg array columnsLuke Steensen2014-03-301-1/+7
| | | | fixes #10613
* No need to call to_symRafael Mendonça França2014-03-301-2/+2
| | | | It is already called inside type_to_sql method.
* support creating temporary tables from queriesCody Cutrer2013-12-141-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 M2013-11-121-0/+83