diff options
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 1f300dea5d..1b016b6e8b 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,21 +1,33 @@ -* Add `unsigned` support for numeric data types in MySQL. +* MySQL: support `unsigned` numeric data types. Example: create_table :foos do |t| - t.integer :unsigned_integer, unsigned: true - t.bigint :unsigned_bigint, unsigned: true - t.float :unsigned_float, unsigned: true - t.decimal :unsigned_decimal, unsigned: true, precision: 10, scale: 2 + t.unsigned_integer :quantity + t.unsigned_bigint :total + t.unsigned_float :percentage + t.unsigned_decimal :price, precision: 10, scale: 2 end - In the case of using `unsigned` as the type: + The `unsigned: true` option may be used for the primary key: - create_table :foos do |t| - t.unsigned_integer :unsigned_integer - t.unsigned_bigint :unsigned_bigint - t.unsigned_float :unsigned_float - t.unsigned_decimal :unsigned_decimal, precision: 10, scale: 2 + create_table :foos, id: :bigint, unsigned: true do |t| + … + end + + *Ryuta Kamizono* + +* Add `#views` and `#view_exists?` methods on connection adapters. + + *Ryuta Kamizono* + +* Correctly dump composite primary key. + + Example: + + create_table :barcodes, primary_key: ["region", "code"] do |t| + t.string :region + t.integer :code end *Ryuta Kamizono* |