summaryrefslogtreecommitdiff
path: root/db/migrate/20130410123523_create_generic_files.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20130410123523_create_generic_files.rb')
-rw-r--r--db/migrate/20130410123523_create_generic_files.rb17
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