Sha256: 1af14c5246bc3af101076793533021805d0f11426d86349eb8f598f9f13cd972
Contents?: true
Size: 470 Bytes
Versions: 17
Compression:
Stored size: 470 Bytes
Contents
class CreateComments < ActiveRecord::Migration[5.0] def change create_table :decidim_comments_comments do |t| t.text :body, null: false t.references :decidim_commentable, null: false, polymorphic: true, index: { name: "decidim_comments_comment_commentable" } t.references :decidim_author, null: false, index: { name: "decidim_comments_comment_author" } t.timestamps end add_index :decidim_comments_comments, :created_at end end
Version data entries
17 entries across 17 versions & 2 rubygems