Created
March 28, 2019 12:48
-
-
Save simoleone/308d4fb41e85a460574e1af44f96c02b to your computer and use it in GitHub Desktop.
Adding a Shrine field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AddShrineImages < ActiveRecord::Migration[5.2] | |
def change | |
add_column :my_interesting_thing, :image_data, :text | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyInterestingThing < ApplicationRecord | |
include ThingImageUploader::Attachment.new(:image) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment