panier_app/db/migrate/20200303104619_create_file_tunel_downloads.rb
Nicolas Bally d744a04b28 initial
2020-10-30 22:26:40 +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