1 # frozen_string_literal: true
 
   3 class CreateRedactions < ActiveRecord::Migration[4.2]
 
   5     create_table :redactions do |t|
 
   9       t.timestamps :null => true
 
  12     [:nodes, :ways, :relations].each do |tbl|
 
  13       add_column tbl, :redaction_id, :integer, :null => true
 
  14       add_foreign_key tbl, :redactions, :name => "#{tbl}_redaction_id_fkey"