2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-10-04 17:32:34 +08:00
discourse/db/migrate/20150203041207_add_application_requests.rb
2023-01-09 11:59:41 +00:00

13 lines
357 B
Ruby

# frozen_string_literal: true
class AddApplicationRequests < ActiveRecord::Migration[4.2]
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, %i[date req_type], unique: true
end
end