mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
10 lines
230 B
Ruby
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
|