diff options
author | Peter Kozak <spag@golwen.net> | 2013-04-11 10:51:28 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-04-11 10:51:28 +0200 |
commit | 78ea4bcd397a4d8f39ad3c08066fe918a8fc89ad (patch) | |
tree | a22d63d7fcaa2c2c32d2905424777a1ff1a8a21d /db/migrate/20130410123523_create_generic_files.rb | |
parent | 145d774adece71282020603b699ab684537cc1b3 (diff) |
file uploader
Diffstat (limited to 'db/migrate/20130410123523_create_generic_files.rb')
-rw-r--r-- | db/migrate/20130410123523_create_generic_files.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20130410123523_create_generic_files.rb b/db/migrate/20130410123523_create_generic_files.rb new file mode 100644 index 0000000..a91f341 --- /dev/null +++ b/db/migrate/20130410123523_create_generic_files.rb @@ -0,0 +1,17 @@ +class CreateGenericFiles < ActiveRecord::Migration + def self.up + create_table :generic_files do |t| + t.string :name + t.string :file + t.string :file_type + t.string :category + t.integer :owner_id + t.string :owner_type + t.timestamps + end + end + + def self.down + drop_table :generic_files + end +end |