Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Document Paperclip::Schema

  • Loading branch information...
commit f3eacd2483ef9fdf2ac3c3a0758370c3ee7bed85 1 parent e0a6732
@dasch dasch authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/paperclip/schema.rb
View
6 lib/paperclip/schema.rb
@@ -1,4 +1,10 @@
module Paperclip
+ # Provides two helpers that can be used in migrations.
+ #
+ # In order to use this module, the target class should implement a
+ # +column+ method that takes the column name and type, both as symbols,
+ # as well as a +remove_column+ method that takes a table and column name,
+ # also both symbols.
module Schema
@@columns = {:file_name => :string,
:content_type => :string,
Please sign in to comment.
Something went wrong with that request. Please try again.