Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: Serge90/jshop
base: 11bb86c
...
head fork: Serge90/jshop
compare: 4ee5a0d
  • 2 commits
  • 6 files changed
  • 0 commit comments
  • 1 contributor
Commits on Aug 06, 2011
@kritik kritik additions bcb0977
@kritik kritik changes 4ee5a0d
View
2  Gemfile
@@ -8,6 +8,8 @@ gem 'rails', '3.0.7'
gem 'spree_ajax_cart', :git => 'git://github.com/kritik/spree_ajax_cart'
# gem "spree_locales_dropdown", :require => "spree_locales_dropdown", :git => 'git://github.com/greendog/spree_locales_dropdown.git'
gem 'mysql2','< 0.3'
+gem 'dynamic_form'
+
gem 'spree', '0.60'#, :git => 'git://github.com/spree/spree.git'
#gem 'deface', :git => 'git://github.com/railsdog/deface.git'
gem "spree_static_content"
View
14 db/migrate/20100308090631_create_relation_types.rb
@@ -0,0 +1,14 @@
+class CreateRelationTypes < ActiveRecord::Migration
+ def self.up
+ create_table :relation_types do |t|
+ t.string :name
+ t.text :description
+ t.string :applies_to
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :relation_types
+ end
+end
View
14 db/migrate/20100308092101_create_relations.rb
@@ -0,0 +1,14 @@
+class CreateRelations < ActiveRecord::Migration
+ def self.up
+ create_table :relations, :force => true do |t|
+ t.references :relation_type
+ t.references :relatable, :polymorphic => true
+ t.references :related_to, :polymorphic => true
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :relations
+ end
+end
View
9 db/migrate/20100324123835_add_discount_to_relation.rb
@@ -0,0 +1,9 @@
+class AddDiscountToRelation < ActiveRecord::Migration
+ def self.up
+ add_column :relations, :discount_amount, :decimal, :precision => 8, :scale => 2, :default => 0.0
+ end
+
+ def self.down
+ remove_column :relations, :discount_amount
+ end
+end
View
9 db/migrate/20110731103645_user_id_column_for_reviews.rb
@@ -1,9 +0,0 @@
-class UserIdColumnForReviews < ActiveRecord::Migration
- def self.up
- add_column :reviews, :user_id, :integer
- end
-
- def self.down
- remove_column :reviews, :user_id
- end
-end
View
1  db/schema.rb
@@ -614,6 +614,7 @@
t.boolean "approved", :default => false
t.datetime "created_at"
t.datetime "updated_at"
+ t.integer "user_id"
end
create_table "roles", :force => true do |t|

No commit comments for this range

Something went wrong with that request. Please try again.