From cf1b60e0cfa7d1a8f4a80d686649cc12e73a634e Mon Sep 17 00:00:00 2001 From: hukl Date: Fri, 24 Apr 2009 11:43:08 +0200 Subject: Integrated basic Asset upload functionality. You can upload files now and use their url in pages. --- db/migrate/20090424085851_create_assets.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 db/migrate/20090424085851_create_assets.rb (limited to 'db') 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 @@ +class CreateAssets < ActiveRecord::Migration + def self.up + create_table :assets do |t| + t.string :name + t.string :upload_file_name + t.string :upload_content_type + t.integer :upload_file_size + t.datetime :upload_updated_at + t.timestamps + end + end + + def self.down + drop_table :assets + end +end -- cgit v1.3