2017-08-31 00:06:56 -04:00
|
|
|
class AddApplicationRequests < ActiveRecord::Migration[4.2]
|
2015-02-03 23:10:54 -05:00
|
|
|
def change
|
|
|
|
create_table :application_requests do |t|
|
|
|
|
t.date :date, null: false
|
|
|
|
t.integer :req_type, null: false
|
|
|
|
t.integer :count, null: false, default: 0
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index :application_requests, [:date, :req_type], unique: true
|
|
|
|
end
|
|
|
|
end
|