Sha256: d1b2420ac04e2308ffa10901742a54e5d1368d8e12e79f997b38bba908e469f0
Contents?: true
Size: 363 Bytes
Versions: 20
Compression:
Stored size: 363 Bytes
Contents
class CreateComments < ActiveRecord::Migration def self.up create_table :comments do |t| t.integer :entry_id t.string :name t.string :email t.string :url t.text :body t.timestamps end add_index :comments, :entry_id end def self.down remove_index :comments, :entry_id drop_table :comments end end
Version data entries
20 entries across 10 versions & 1 rubygems