Class: AddHashToTimeEntries
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddHashToTimeEntries
- Defined in:
- lib/watch_tower/server/db/migrate/005_add_hash_to_time_entries.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
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 |