Sha256: 0cfa66ae33a01c5fd189ee074b2562ad16ced94ff0282341252e55bee8fce1e4

Contents?: true

Size: 404 Bytes

Versions: 9

Compression:

Stored size: 404 Bytes

Contents

# frozen_string_literal: true

class CreateReviews < SolidusSupport::Migration[4.2]
  def self.up
    create_table :reviews do |t|
      t.integer :product_id
      t.string  :name
      t.string  :location
      t.integer :rating
      t.text    :title
      t.text    :review
      t.boolean :approved, default: false
      t.timestamps
    end
  end

  def self.down
    drop_table :reviews
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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