Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed javascript bug on file upload, added data base info on files an…

…d tagged files.
  • Loading branch information...
Ernest Ellingson
Ernest Ellingson committed Sep 27, 2008
1 parent 6358314 commit f3297a9ea775ea2e32ee294a6ab5962041ad5759
@@ -0,0 +1,7 @@
class Fyle < ActiveRecord::Base
acts_as_taggable
def self.get_mime_type(file)
r=self.find_by_file_name(file);
r.mime_type
end
end
@@ -0,0 +1,13 @@
class CreateFyles < ActiveRecord::Migration
def self.up
create_table "fyles", :force => true do |t|
t.string "mime_type"
t.string "file_name"
t.timestamps
end
end

def self.end
drop_table "fyles"
end
end

0 comments on commit f3297a9

Please sign in to comment.
You can’t perform that action at this time.