Sha256: bb19d7398c08dba5e3e7ae59ed74d3f0bb7fe0fcd44fd08790f38b47d38209c2
Contents?: true
Size: 501 Bytes
Versions: 144
Compression:
Stored size: 501 Bytes
Contents
# frozen_string_literal: true 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
144 entries across 144 versions & 2 rubygems