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

Version Path
decidim-comments-0.2.0 db/migrate/20161130143508_create_comments.rb
decidim-0.2.0 decidim-comments/db/migrate/20161130143508_create_comments.rb
decidim-comments-0.1.0 db/migrate/20161130143508_create_comments.rb
decidim-0.1.0 decidim-comments/db/migrate/20161130143508_create_comments.rb
decidim-comments-0.0.8.1 db/migrate/20161130143508_create_comments.rb
decidim-0.0.8.1 decidim-comments/db/migrate/20161130143508_create_comments.rb
decidim-comments-0.0.7 db/migrate/20161130143508_create_comments.rb
decidim-0.0.7 decidim-comments/db/migrate/20161130143508_create_comments.rb
decidim-comments-0.0.6 db/migrate/20161130143508_create_comments.rb
decidim-0.0.6 decidim-comments/db/migrate/20161130143508_create_comments.rb
decidim-comments-0.0.5 db/migrate/20161130143508_create_comments.rb
decidim-0.0.5 decidim-comments/db/migrate/20161130143508_create_comments.rb
decidim-0.0.4 decidim-comments/db/migrate/20161130143508_create_comments.rb
decidim-comments-0.0.3 db/migrate/20161130143508_create_comments.rb
decidim-0.0.3 decidim-comments/db/migrate/20161130143508_create_comments.rb
decidim-comments-0.0.2 db/migrate/20161130143508_create_comments.rb
decidim-0.0.2 decidim-comments/db/migrate/20161130143508_create_comments.rb