Sha256: a9ad3d1283316d66faa05f70301cc4d220168e49a9681fc69385bbb081eada2e

Contents?: true

Size: 382 Bytes

Versions: 23

Compression:

Stored size: 382 Bytes

Contents

class CreateReviews < ActiveRecord::Migration
  def self.up
    create_table :reviews do |t|
      t.integer :business_id
      t.integer :user_id
      t.string :name
      t.integer :rating, :limit=>1
      t.text :body
      t.integer :views
    end
    add_index :reviews, :business_id
    add_index :reviews, :user_id
  end
  
  def self.down
    drop_table :reviews
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
migrant-1.3.2 test/verified_output/migrations/create_reviews.rb
migrant-1.3.1 test/verified_output/migrations/create_reviews.rb
migrant-1.3.0 test/verified_output/migrations/create_reviews.rb
migrant-1.2.8 test/verified_output/migrations/create_reviews.rb
migrant-1.2.7 test/verified_output/migrations/create_reviews.rb
migrant-1.2.5 test/verified_output/migrations/create_reviews.rb
migrant-1.2.2 test/verified_output/migrations/create_reviews.rb
migrant-1.2.1 test/verified_output/migrations/create_reviews.rb
migrant-1.2.0 test/verified_output/migrations/create_reviews.rb
migrant-1.1.2 test/verified_output/migrations/create_reviews.rb
migrant-1.1.1 test/verified_output/migrations/create_reviews.rb
migrant-1.1.0 test/verified_output/migrations/create_reviews.rb
migrant-1.0.2 test/verified_output/migrations/create_reviews.rb
migrant-1.0.1 test/verified_output/migrations/create_reviews.rb
migrant-1.0.0 test/verified_output/migrations/create_reviews.rb
migrant-0.2.4 test/verified_output/migrations/create_reviews.rb
migrant-0.2.3 test/verified_output/migrations/create_reviews.rb
migrant-0.2.2 test/verified_output/migrations/create_reviews.rb
migrant-0.2.1 test/verified_output/migrations/create_reviews.rb
migrant-0.2.0 test/verified_output/migrations/create_reviews.rb