Sha256: b679ba22e0ee28fac48aa4c6198cce0e047ef6acbaa89b5f6c0f0c7e05926b98
Contents?: true
Size: 289 Bytes
Versions: 3
Compression:
Stored size: 289 Bytes
Contents
class CreateComments < ActiveRecord::Migration def self.up create_table :comments do |t| t.string :author t.string :email t.string :url t.text :body t.references :post t.timestamps end end def self.down drop_table :comments end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
blogmodule-1.0.2 | db/migrate/20120102163952_create_comments.rb |
blogmodule-1.0.1 | db/migrate/20120102163952_create_comments.rb |
blogmodule-1.0.0 | db/migrate/20120102163952_create_comments.rb |