scinote-web/db/migrate/20180417062042_create_datatables_reports.rb

8 lines
237 B
Ruby
Raw Normal View History

class CreateDatatablesReports < ActiveRecord::Migration[5.1]
def change
create_view :datatables_reports, materialized: true
add_index :datatables_reports, :id, unique: true
add_index :datatables_reports, :team_id
end
end