scinote-web/db/migrate/20150923065605_create_temp_files.rb
2019-10-09 10:28:02 +02:00

10 lines
230 B
Ruby

class CreateTempFiles < ActiveRecord::Migration[4.2]
def change
create_table :temp_files do |t|
t.string :session_id, null: false
t.timestamps null: false
end
add_attachment :temp_files, :file
end
end