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
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
26 create_table :image_science_attachments, :force => true do |t|
27 t.column :parent_id, :integer
28 t.column :thumbnail, :string
29 t.column :filename, :string, :limit => 255
30 t.column :content_type, :string, :limit => 255
31 t.column :size, :integer
32 t.column :width, :integer
33 t.column :height, :integer
34 t.column :type, :string
37 create_table :mini_magick_attachments, :force => true do |t|
38 t.column :parent_id, :integer
39 t.column :thumbnail, :string
40 t.column :filename, :string, :limit => 255
41 t.column :content_type, :string, :limit => 255
42 t.column :size, :integer
43 t.column :width, :integer
44 t.column :height, :integer
45 t.column :type, :string
48 create_table :mini_magick_attachments, :force => true do |t|
49 t.column :parent_id, :integer
50 t.column :thumbnail, :string
51 t.column :filename, :string, :limit => 255
52 t.column :content_type, :string, :limit => 255
53 t.column :size, :integer
54 t.column :width, :integer
55 t.column :height, :integer
56 t.column :type, :string
59 create_table :orphan_attachments, :force => true do |t|
60 t.column :db_file_id, :integer
61 t.column :filename, :string, :limit => 255
62 t.column :content_type, :string, :limit => 255
63 t.column :size, :integer
66 create_table :minimal_attachments, :force => true do |t|
67 t.column :size, :integer
68 t.column :content_type, :string, :limit => 255
71 create_table :db_files, :force => true do |t|
72 t.column :data, :binary
75 create_table :s3_attachments, :force => true do |t|
76 t.column :parent_id, :integer
77 t.column :thumbnail, :string
78 t.column :filename, :string, :limit => 255
79 t.column :content_type, :string, :limit => 255
80 t.column :size, :integer
81 t.column :width, :integer
82 t.column :height, :integer
83 t.column :type, :string
84 t.column :aspect_ratio, :float