Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
3d8293b2
Commit
3d8293b2
authored
Oct 31, 2018
by
Paul M. Thiebauth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple of typos in the migration guide
parent
ae47aed2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
MIGRATING.md
+4
-4
No files found.
MIGRATING.md
View file @
3d8293b2
...
@@ -134,7 +134,7 @@ class ConvertToActiveStorage < ActiveRecord::Migration[5.2]
...
@@ -134,7 +134,7 @@ class ConvertToActiveStorage < ActiveRecord::Migration[5.2]
active_storage_blob_statement
=
ActiveRecord
::
Base
.
connection
.
raw_connection
.
prepare
(
'active_storage_blob_statement'
,
<<-
SQL
)
active_storage_blob_statement
=
ActiveRecord
::
Base
.
connection
.
raw_connection
.
prepare
(
'active_storage_blob_statement'
,
<<-
SQL
)
INSERT INTO active_storage_blobs (
INSERT INTO active_storage_blobs (
`key`
, filename, content_type, metadata, byte_size, checksum, created_at
key
, filename, content_type, metadata, byte_size, checksum, created_at
) VALUES ($1, $2, $3, '{}', $4, $5, $6)
) VALUES ($1, $2, $3, '{}', $4, $5, $6)
SQL
SQL
...
@@ -458,8 +458,8 @@ validating an attachment's content type or file size (which can be useful for
...
@@ -458,8 +458,8 @@ validating an attachment's content type or file size (which can be useful for
There are alternatives that support some of Paperclip's file validations.
There are alternatives that support some of Paperclip's file validations.
For instance, here are some changes you could make to migrate a
For instance, here are some changes you could make to migrate a
Paperclip-enabled model to use validations provided by the [`file_validat
ion
s`
Paperclip-enabled model to use validations provided by the [`file_validat
or
s`
gem][file-validat
ion
s]:
gem][file-validat
or
s]:
```
diff
```
diff
...
@@ -476,7 +476,7 @@ class User < ApplicationRecord
...
@@ -476,7 +476,7 @@ class User < ApplicationRecord
[paperclip-validations]: https://github.com/thoughtbot/paperclip/tree/v6.1.0#validations
[paperclip-validations]: https://github.com/thoughtbot/paperclip/tree/v6.1.0#validations
[security-validations]: https://github.com/thoughtbot/paperclip/tree/v6.1.0#security-validations
[security-validations]: https://github.com/thoughtbot/paperclip/tree/v6.1.0#security-validations
[file-validat
ion
s]: https://github.com/musaffa/file_validators/tree/v2.3.0#examples
[file-validat
or
s]: https://github.com/musaffa/file_validators/tree/v2.3.0#examples
## Remove Paperclip
## Remove Paperclip
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment