aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/db
Commit message (Collapse)AuthorAgeFilesLines
* Add foreign key to active_storage_attachments for `blob_id` via new migrationbogdanvlviv2019-01-161-0/+7
| | | | | | | | | | | | | | | | | | We need this in order to be able to add this migration for users that use ActiveStorage during update their apps from Rails 5.2 to Rails 6.0. Related to #33405 `rake app:update` should update active_storage `rake app:update` should execute `rake active_storage:update` if it is used in the app that is being updated. It will add new active_storage's migrations to users' apps during update Rails. Context https://github.com/rails/rails/pull/33405#discussion_r204239399 Also, see a related discussion in the Campfire: https://3.basecamp.com/3076981/buckets/24956/chats/12416418@1236713081
* Add a foreign-key constraint to the attachments table for blobsGeorge Claghorn2018-07-191-0/+1
|
* Widen blob size columnGeorge Claghorn2017-08-241-1/+1
|
* Use 5.2 version of ActiveRecord::Migration for Active Storagebogdanvlviv2017-08-221-1/+1
|
* Remove frozen_string_literal comment from activestorage's migrationbogdanvlviv2017-08-221-2/+0
| | | | | The activestorage's migration is used as template for apps Related to #30348
* Merge pull request #30211 from koic/frozen_activestorageMatthew Draper2017-08-131-0/+2
|\ | | | | Use frozen string literal in Active Storage
| * Use frozen string literal in Active StorageKoichi ITO2017-08-121-0/+2
| |
* | Use `references` to respect primary key type in active storage tablesRyuta Kamizono2017-08-131-5/+3
|/ | | | | | If created active storage tables by mysql2 or postgresql adapters, a primary key is defined as a bigint. It should be used `references` to the reference columns to respect primary key type.
* Add `null: false` to Active Storage tablesRyuta Kamizono2017-08-121-10/+10
| | | | These columns aren't intended nullable.
* ActiveStorage:Add migrations per rails engine conventions (#30111)Dino Maric2017-08-081-0/+27
* Add migrations per rails engine conventions * Fix failing tests