Class: CreateScannedFiles

Inherits:
PeakFlowUtils::ApplicationMigration show all
Defined in:
lib/peak_flow_utils/migrations/20160411190500_create_scanned_files.rb

Instance Method Summary collapse

Methods inherited from PeakFlowUtils::ApplicationMigration

#connection

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
# File 'lib/peak_flow_utils/migrations/20160411190500_create_scanned_files.rb', line 2

def change
  create_table :peak_flow_utils_scanned_files do |t|
    t.string :file_path, index: true, null: false
    t.integer :file_size, null: false
    t.datetime :last_changed_at, null: false
    t.timestamps
  end
end