Permalink
Browse files

Document Paperclip::Schema

  • Loading branch information...
1 parent e0a6732 commit f3eacd2483ef9fdf2ac3c3a0758370c3ee7bed85 @dasch dasch committed Sep 15, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/paperclip/schema.rb
View
@@ -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,

0 comments on commit f3eacd2

Please sign in to comment.