special offers backoffice is ready now

This commit is contained in:
Senad Uka
2015-03-18 06:25:40 +01:00
parent 3b95500635
commit 658fe4931d
17 changed files with 208 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
class AddFlagsToCart < ActiveRecord::Migration
def change
add_column :carts, :confirmed, :boolean, default: false
add_column :carts, :packed, :boolean, default: false
add_column :carts, :canceled_on_check, :boolean, default: false
add_column :carts, :canceled_on_delivery, :boolean, default: false
add_column :carts, :delivered, :boolean, default: false
add_column :carts, :internal_note, :text
end
end

View File

@@ -0,0 +1,19 @@
class CreateSpecialOffers < ActiveRecord::Migration
def change
create_table :special_offers do |t|
t.string :image_url
t.boolean :start_page
t.integer :section_id
t.integer :category_id
t.integer :sub_category_id
t.integer :item_id
t.boolean :thank_you_page
t.boolean :search_result_page
t.boolean :checkout_page
t.date :beginning
t.date :ending
t.timestamps null: false
end
end
end

View File

@@ -0,0 +1,5 @@
class AddSpecialOfferToItem < ActiveRecord::Migration
def change
add_column :items, :special_offer_id, :integer
end
end