2022-06-14 15:17:02 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-06-14 08:09:10 -07:00
|
|
|
class CreateAnonymousBlocks < ActiveRecord::Migration[6.1]
|
|
|
|
def change
|
|
|
|
create_table :anonymous_blocks do |t|
|
|
|
|
t.references :user, null: false, foreign_key: true
|
|
|
|
t.string :identifier, index: true
|
|
|
|
t.references :question, null: false, foreign_key: true
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|