scinote-web/db/migrate/20170321131116_create_zip_exports.rb

11 lines
254 B
Ruby
Raw Normal View History

2017-06-30 16:23:28 +08:00
class CreateZipExports < ActiveRecord::Migration[4.2]
2017-03-21 23:15:11 +08:00
def change
create_table :zip_exports do |t|
t.references :user, index: true, foreign_key: true
t.timestamps null: false
end
add_attachment :zip_exports, :zip_file
end
end