Class: AddHashToTimeEntries

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/watch_tower/server/db/migrate/005_add_hash_to_time_entries.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



4
5
6
7
# File 'lib/watch_tower/server/db/migrate/005_add_hash_to_time_entries.rb', line 4

def change
  add_column :time_entries, :file_hash, :string, null: false, default: ""
  add_index :time_entries, :file_hash
end