Introduced StockTaking. TODO: Dry up the stockit/stock_takings/deliveries controllers/views!
This commit is contained in:
parent
2bb4cdb9d6
commit
951d19db6a
30 changed files with 436 additions and 55 deletions
|
|
@ -144,10 +144,17 @@ class RoadToVersionThree < ActiveRecord::Migration
|
|||
# t.datetime :created_at
|
||||
# end
|
||||
|
||||
# == User
|
||||
# Ativate all Users for notification on upcoming tasks
|
||||
User.all.each { |u| u.settings['notify.upcoming_tasks'] = 1 }
|
||||
# == StockTaking
|
||||
create_table :stock_takings do |t|
|
||||
t.date :date
|
||||
t.text :note
|
||||
t.datetime :created_at
|
||||
end
|
||||
add_column :stock_changes, :stock_taking_id, :integer
|
||||
|
||||
# # == User
|
||||
# # Ativate all Users for notification on upcoming tasks
|
||||
# User.all.each { |u| u.settings['notify.upcoming_tasks'] = 1 }
|
||||
end
|
||||
|
||||
def self.down
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue