aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/111_create_purge_requests.rb
blob: c5ddaf4a26ffd660798ac5ec98c51b7a5908a4e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# -*- encoding : utf-8 -*-
class CreatePurgeRequests < ActiveRecord::Migration
  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