mysociety/alaveteli

View on GitHub
db/migrate/111_create_purge_requests.rb

Summary

Maintainability
A
25 mins
Test Coverage
# -*- encoding : utf-8 -*-
class CreatePurgeRequests < ActiveRecord::Migration[4.2] # 2.3
  def self.up
    create_table :purge_requests do |t|
      t.column :url, :string
      t.column :created_at, :datetime, :null => false
      t.column :model, :string, :null => false
      t.column :model_id, :integer, :null => false
    end
  end

  def self.down
    drop_table :purge_requests
  end
end