Sha256: d5fa0d440b1d894bfa302a759c65110f0d349e006e2ab25fe2deb69b5bfadea8
Contents?: true
Size: 393 Bytes
Versions: 8
Compression:
Stored size: 393 Bytes
Contents
class CreateFileUpload < ActiveRecord::Migration def change create_table(:file_uploads) do |t| t.text :file, null: false t.text :file_name t.text :content_type t.integer :file_size, null: false, default: 0 t.timestamps end add_index :file_uploads, :file add_index :file_uploads, :content_type add_index :file_uploads, :file_size end end
Version data entries
8 entries across 8 versions & 1 rubygems