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