summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20090424085851_create_assets.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20090424085851_create_assets.rb b/db/migrate/20090424085851_create_assets.rb
new file mode 100644
index 0000000..c7f1796
--- /dev/null
+++ b/db/migrate/20090424085851_create_assets.rb
@@ -0,0 +1,16 @@
1class CreateAssets < ActiveRecord::Migration
2 def self.up
3 create_table :assets do |t|
4 t.string :name
5 t.string :upload_file_name
6 t.string :upload_content_type
7 t.integer :upload_file_size
8 t.datetime :upload_updated_at
9 t.timestamps
10 end
11 end
12
13 def self.down
14 drop_table :assets
15 end
16end