This repository has been archived by the owner on Aug 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed javascript bug on file upload, added data base info on files an…
…d tagged files.
- Loading branch information
Ernest Ellingson
committed
Sep 27, 2008
1 parent
6358314
commit f3297a9
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |