scinote-web/db/migrate/20150923065605_create_temp_files.rb

11 lines
230 B
Ruby
Raw Normal View History

2017-06-30 16:23:28 +08:00
class CreateTempFiles < ActiveRecord::Migration[4.2]
2016-02-12 23:52:43 +08:00
def change
create_table :temp_files do |t|
t.string :session_id, null: false
t.timestamps null: false
end
add_attachment :temp_files, :file
2016-02-12 23:52:43 +08:00
end
end