Sha256: 97ec353f1b9913add9c281e449f56214998604a208a8c25b38fa975c9495e9b5
Contents?: true
Size: 490 Bytes
Versions: 72
Compression:
Stored size: 490 Bytes
Contents
class CreateComments < ActiveRecord::Migration def change create_table :comments do |t| t.integer :commentable_id t.string :commentable_type t.string :locale t.integer :parent_id t.string :author t.string :email t.string :website t.text :message t.string :status t.boolean :marked_as_spam t.timestamps null: false end add_index :comments, :commentable_id add_index :comments, :commentable_type end end
Version data entries
72 entries across 72 versions & 1 rubygems