sadem_app/db/migrate/20200303104619_create_file_tunel_downloads.rb
Nicolas Bally 39feacb7dc suite
2020-03-03 13:51:47 +01:00

19 lines
491 B
Ruby

class CreateFileTunelDownloads < ActiveRecord::Migration[6.0]
def change
create_table :file_tunel_downloads do |t|
t.references :file_tunel, foreign_key: true
t.references :file_tunel_send, foreign_key: true
t.string :name
t.string :firstname
t.string :organisation
t.string :civilite
t.string :token
t.string :email
t.integer :download_times, :default => 0
t.datetime :last_download_at
t.timestamps
end
end
end