Displaying 1 result from an estimated 1 matches for "associationdocu".
2006 Jun 19
3
can''t dump anonymous class Class
...d::Migration
def self.up
create_table :documents do |t|
t.column :type, :string
t.column :name, :string
t.column :file_path, :string
t.column :content_type, :string
t.column :created_on, :timestamp
# attributes for type="AssociationDocument"
t.column :association_id, :integer
# attributes for type="LocationDocument"
t.column :location_id, :integer
end
end
def self.down
drop_table :documents
end
end
** Models **
class Document < ActiveRecord::Base
attr_accessor :uploaded_fi...