2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/forge/db/migrate/20130405172030_create_products.rb', line 2
def up
create_table "products" do |t|
t.datetime "created_at"
t.datetime "updated_at"
t.string "title"
t.string "short_description"
t.text "description"
t.float "price", :default => 0.0, :null => false
t.integer "list_order"
t.boolean "featured", :default => false, :null => false
t.boolean "published", :default => false
t.integer "product_category_id"
t.float "weight", :default => 0.0
t.float "flat_rate_shipping", :default => 0.0
t.float "width", :default => 0.0
t.float "height", :default => 0.0
t.float "depth", :default => 0.0
t.text "options"
t.integer "sale_id"
t.string "seo_title"
t.text "seo_keywords"
t.text "seo_description"
end
add_index "products", ["list_order"], :name => "index_products_on_list_order"
add_index "products", ["product_category_id"], :name => "index_products_on_product_category_id"
add_index "products", ["sale_id"], :name => "index_products_on_sale_id"
end
|