only one view per query for now

pull/9896/head
ulferts 3 years ago
parent c0faea6cbf
commit e0ed376730
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 2
      db/migrate/20211130161501_add_views.rb

@ -1,7 +1,7 @@
class AddViews < ActiveRecord::Migration[6.1]
def change
create_table :views do |t|
t.references :query, null: false, foreign_key: true, index: true
t.references :query, null: false, foreign_key: true, index: { unique: true }
t.jsonb :options, default: {}, null: false
t.string :type, null: false

Loading…
Cancel
Save