Sha256: b1c6c186a9988d8c29721283500b14d513751d627ec315864f8e5f75a4717236

Contents?: true

Size: 513 Bytes

Versions: 1

Compression:

Stored size: 513 Bytes

Contents

class CreateSpreeReviewSet < ActiveRecord::Migration
  def self.up
    create_table :spree_review_sets do |t|
      t.column :inline_path, :string
      t.column :full_review_count, :int
      t.column :average_rating, :decimal
      t.column :bottom_line_yes_votes, :int
      t.column :bottom_line_no_votes, :int
      t.column :qa_inline_path, :string
    end
    change_table :spree_products do |t|
      t.references :review_set
    end
  end

  def self.down
    drop_table :product_power_reviews
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_power_reviews-3.0.0 app/db/migrate/20150618105326_create_review_set.spree_power_reviews.rb