Add created_by user to Task
This commit is contained in:
parent
18e38be6be
commit
b6f5295267
10 changed files with 35 additions and 7 deletions
11
db/migrate/20181205000000_add_user_to_task.rb
Normal file
11
db/migrate/20181205000000_add_user_to_task.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
class AddUserToTask < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :tasks, :created_by_user_id, :integer
|
||||
|
||||
reversible do |dir|
|
||||
dir.up do
|
||||
change_column :tasks, :description, :text
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue