Added rate_id to the time_entries table
This commit is contained in:
11
db/migrate/003_add_rate_id_to_time_entries.rb
Normal file
11
db/migrate/003_add_rate_id_to_time_entries.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class AddRateIdToTimeEntries < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :time_entries, :rate_id, :integer
|
||||
add_index :time_entries, :rate_id
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_index :time_entries, :rate_id
|
||||
remove_column :time_entries, :rate_id
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user