Skip to content

Instantly share code, notes, and snippets.

@alexshagov
Last active April 28, 2016 20:14
Show Gist options
  • Save alexshagov/b881ee041fb8820199bcdc393463db59 to your computer and use it in GitHub Desktop.
Save alexshagov/b881ee041fb8820199bcdc393463db59 to your computer and use it in GitHub Desktop.
blg.1-1
class AddFileToPicture < ActiveRecord::Migration
def change
add_attachment :pictures, :file
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment