updated top the the new version of attachment_fu plugin to work out some
[selectricity] / vendor / plugins / attachment_fu / test / schema.rb
index b2e284d5ca203e89763ff93dfef1a3db0d96ac1e..b7666f5b9366e4ba77fad6dd0d7bcd9636ee6946 100644 (file)
@@ -22,6 +22,30 @@ ActiveRecord::Schema.define(:version => 0) do
     t.column :type,            :string
     t.column :aspect_ratio,    :float
   end
+  
+  create_table :file_attachments_with_string_id, :id => false, :force => true do |t|
+    t.column :id,              :string
+    t.column :parent_id,       :string
+    t.column :thumbnail,       :string 
+    t.column :filename,        :string, :limit => 255
+    t.column :content_type,    :string, :limit => 255
+    t.column :size,            :integer
+    t.column :width,           :integer
+    t.column :height,          :integer
+    t.column :type,            :string
+    t.column :aspect_ratio,    :float
+  end
+
+  create_table :gd2_attachments, :force => true do |t|
+    t.column :parent_id,       :integer
+    t.column :thumbnail,       :string 
+    t.column :filename,        :string, :limit => 255
+    t.column :content_type,    :string, :limit => 255
+    t.column :size,            :integer
+    t.column :width,           :integer
+    t.column :height,          :integer
+    t.column :type,            :string
+  end
 
   create_table :image_science_attachments, :force => true do |t|
     t.column :parent_id,       :integer
@@ -34,6 +58,17 @@ ActiveRecord::Schema.define(:version => 0) do
     t.column :type,            :string
   end
 
+  create_table :core_image_attachments, :force => true do |t|
+    t.column :parent_id,       :integer
+    t.column :thumbnail,       :string 
+    t.column :filename,        :string, :limit => 255
+    t.column :content_type,    :string, :limit => 255
+    t.column :size,            :integer
+    t.column :width,           :integer
+    t.column :height,          :integer
+    t.column :type,            :string
+  end
+  
   create_table :mini_magick_attachments, :force => true do |t|
     t.column :parent_id,       :integer
     t.column :thumbnail,       :string 
@@ -83,4 +118,17 @@ ActiveRecord::Schema.define(:version => 0) do
     t.column :type,            :string
     t.column :aspect_ratio,    :float
   end
-end
\ No newline at end of file
+  
+  create_table :cloud_files_attachments, :force => true do |t|
+    t.column :parent_id,       :integer
+    t.column :thumbnail,       :string 
+    t.column :filename,        :string, :limit => 255
+    t.column :content_type,    :string, :limit => 255
+    t.column :size,            :integer
+    t.column :width,           :integer
+    t.column :height,          :integer
+    t.column :type,            :string
+    t.column :aspect_ratio,    :float
+  end
+  
+end

Benjamin Mako Hill || Want to submit a patch?