Sha256: 4d04cc7fc5a7349e592019de30449a9c25679c43361e3a13fd8386d32a332d9b
Contents?: true
Size: 522 Bytes
Versions: 8
Compression:
Stored size: 522 Bytes
Contents
class GovernorCreateComments < ActiveRecord::Migration def self.up create_table :comments do |t| t.string :title, :content t.boolean :hidden, :default => false t.references :commenter, :polymorphic => true t.references :resource t.timestamps end create_table :guests do |t| t.string :name t.string :email t.string :website t.timestamps end end def self.down drop_table :comments drop_table :guests end end
Version data entries
8 entries across 8 versions & 1 rubygems