Sha256: 2a2eb7b462d43fee2850a579409455f870d4c800af4bda6649b3b2c7e64f9d0e

Contents?: true

Size: 456 Bytes

Versions: 9

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

class CreateFeedbackReviews < SolidusSupport::Migration[4.2]
  def self.up
    create_table :feedback_reviews do |t|
      t.integer :user_id
      t.integer :review_id, null: false
      t.integer :rating,    default: 0
      t.text    :comment
      t.timestamps
    end
    add_index :feedback_reviews, :review_id
    add_index :feedback_reviews, :user_id
  end

  def self.down
    drop_table :feedback_reviews
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
solidus_reviews-1.7.0 db/migrate/20101222083309_create_feedback_reviews.rb
solidus_reviews-1.6.0 db/migrate/20101222083309_create_feedback_reviews.rb
solidus_reviews-1.5.0 db/migrate/20101222083309_create_feedback_reviews.rb
solidus_reviews-1.4.1 db/migrate/20101222083309_create_feedback_reviews.rb
solidus_reviews-1.4.0 db/migrate/20101222083309_create_feedback_reviews.rb
solidus_reviews-1.3.0 db/migrate/20101222083309_create_feedback_reviews.rb
solidus_reviews-1.2.0 db/migrate/20101222083309_create_feedback_reviews.rb
solidus_reviews-1.1.1 db/migrate/20101222083309_create_feedback_reviews.rb
solidus_reviews-1.1.0 db/migrate/20101222083309_create_feedback_reviews.rb