mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 16:18:42 -05:00
12 lines
322 B
Ruby
12 lines
322 B
Ruby
|
class AddApplicationRequests < ActiveRecord::Migration
|
||
|
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
|