updated top the the new version of attachment_fu plugin to work out some
[selectricity-live] / vendor / plugins / attachment_fu / test / schema.rb
1 ActiveRecord::Schema.define(:version => 0) do
2   create_table :attachments, :force => true do |t|
3     t.column :db_file_id,      :integer
4     t.column :parent_id,       :integer
5     t.column :thumbnail,       :string
6     t.column :filename,        :string, :limit => 255
7     t.column :content_type,    :string, :limit => 255
8     t.column :size,            :integer
9     t.column :width,           :integer
10     t.column :height,          :integer
11     t.column :aspect_ratio,    :float
12   end
13
14   create_table :file_attachments, :force => true do |t|
15     t.column :parent_id,       :integer
16     t.column :thumbnail,       :string 
17     t.column :filename,        :string, :limit => 255
18     t.column :content_type,    :string, :limit => 255
19     t.column :size,            :integer
20     t.column :width,           :integer
21     t.column :height,          :integer
22     t.column :type,            :string
23     t.column :aspect_ratio,    :float
24   end
25   
26   create_table :file_attachments_with_string_id, :id => false, :force => true do |t|
27     t.column :id,              :string
28     t.column :parent_id,       :string
29     t.column :thumbnail,       :string 
30     t.column :filename,        :string, :limit => 255
31     t.column :content_type,    :string, :limit => 255
32     t.column :size,            :integer
33     t.column :width,           :integer
34     t.column :height,          :integer
35     t.column :type,            :string
36     t.column :aspect_ratio,    :float
37   end
38
39   create_table :gd2_attachments, :force => true do |t|
40     t.column :parent_id,       :integer
41     t.column :thumbnail,       :string 
42     t.column :filename,        :string, :limit => 255
43     t.column :content_type,    :string, :limit => 255
44     t.column :size,            :integer
45     t.column :width,           :integer
46     t.column :height,          :integer
47     t.column :type,            :string
48   end
49
50   create_table :image_science_attachments, :force => true do |t|
51     t.column :parent_id,       :integer
52     t.column :thumbnail,       :string 
53     t.column :filename,        :string, :limit => 255
54     t.column :content_type,    :string, :limit => 255
55     t.column :size,            :integer
56     t.column :width,           :integer
57     t.column :height,          :integer
58     t.column :type,            :string
59   end
60
61   create_table :core_image_attachments, :force => true do |t|
62     t.column :parent_id,       :integer
63     t.column :thumbnail,       :string 
64     t.column :filename,        :string, :limit => 255
65     t.column :content_type,    :string, :limit => 255
66     t.column :size,            :integer
67     t.column :width,           :integer
68     t.column :height,          :integer
69     t.column :type,            :string
70   end
71   
72   create_table :mini_magick_attachments, :force => true do |t|
73     t.column :parent_id,       :integer
74     t.column :thumbnail,       :string 
75     t.column :filename,        :string, :limit => 255
76     t.column :content_type,    :string, :limit => 255
77     t.column :size,            :integer
78     t.column :width,           :integer
79     t.column :height,          :integer
80     t.column :type,            :string
81   end
82
83   create_table :mini_magick_attachments, :force => true do |t|
84     t.column :parent_id,       :integer
85     t.column :thumbnail,       :string 
86     t.column :filename,        :string, :limit => 255
87     t.column :content_type,    :string, :limit => 255
88     t.column :size,            :integer
89     t.column :width,           :integer
90     t.column :height,          :integer
91     t.column :type,            :string
92   end
93
94   create_table :orphan_attachments, :force => true do |t|
95     t.column :db_file_id,      :integer
96     t.column :filename,        :string, :limit => 255
97     t.column :content_type,    :string, :limit => 255
98     t.column :size,            :integer
99   end
100   
101   create_table :minimal_attachments, :force => true do |t|
102     t.column :size,            :integer
103     t.column :content_type,    :string, :limit => 255
104   end
105
106   create_table :db_files, :force => true do |t|
107     t.column :data, :binary
108   end
109
110   create_table :s3_attachments, :force => true do |t|
111     t.column :parent_id,       :integer
112     t.column :thumbnail,       :string 
113     t.column :filename,        :string, :limit => 255
114     t.column :content_type,    :string, :limit => 255
115     t.column :size,            :integer
116     t.column :width,           :integer
117     t.column :height,          :integer
118     t.column :type,            :string
119     t.column :aspect_ratio,    :float
120   end
121   
122   create_table :cloud_files_attachments, :force => true do |t|
123     t.column :parent_id,       :integer
124     t.column :thumbnail,       :string 
125     t.column :filename,        :string, :limit => 255
126     t.column :content_type,    :string, :limit => 255
127     t.column :size,            :integer
128     t.column :width,           :integer
129     t.column :height,          :integer
130     t.column :type,            :string
131     t.column :aspect_ratio,    :float
132   end
133   
134 end

Benjamin Mako Hill || Want to submit a patch?