Sha256: 4333c22cb16af75cee734abb03052f962dbd06a36de78cf9477a1573eb3bccfb
Contents?: true
Size: 661 Bytes
Versions: 64
Compression:
Stored size: 661 Bytes
Contents
# This migration comes from dm_core (originally 20130321144726) class CreateComments < ActiveRecord::Migration def self.up create_table :core_comments do |t| t.string :title, :limit => 50, :default => "" t.text :comment t.references :commentable, :polymorphic => true t.references :user t.string :role, :default => "comments" t.integer :account_id t.timestamps null: true end add_index :core_comments, :commentable_type add_index :core_comments, :commentable_id add_index :core_comments, :user_id end def self.down drop_table :core_comments end end
Version data entries
64 entries across 64 versions & 4 rubygems