Sha256: 51660adf99eb79d3f114d35565fae57d4a1fd3152f0b3e1a40832c089ab27a69
Contents?: true
Size: 502 Bytes
Versions: 50
Compression:
Stored size: 502 Bytes
Contents
# frozen_string_literal: true class CreateDecidimUserReports < ActiveRecord::Migration[5.2] def change create_table :decidim_user_reports do |t| t.integer :user_moderation_id, foreign_key: true t.integer :user_id, null: false t.string :reason t.text :details t.timestamps end add_foreign_key :decidim_user_reports, :decidim_user_moderations, column: :user_moderation_id add_foreign_key :decidim_user_reports, :decidim_users, column: :user_id end end
Version data entries
50 entries across 50 versions & 1 rubygems