summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-04-24 11:43:08 +0200
committerhukl <contact@smyck.org>2009-04-25 14:55:27 +0200
commitcf1b60e0cfa7d1a8f4a80d686649cc12e73a634e (patch)
treeb68bd845d290ce968892c4532bcff52083925834 /db/migrate
parentb2b78c06074046bd73cc3408a29386a976f0469c (diff)
Integrated basic Asset upload functionality. You can upload files now and use their url in pages.
Diffstat (limited to 'db/migrate')
-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