add project_id to notes
This commit is contained in:
parent
4fbac0332c
commit
572dcffcfa
|
@ -0,0 +1,5 @@
|
|||
class AddProjectIdToNotes < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :notes, :project_id, :integer
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20161228071511) do
|
||||
ActiveRecord::Schema.define(version: 20161229080053) do
|
||||
|
||||
create_table "comments", force: :cascade do |t|
|
||||
t.text "content"
|
||||
|
@ -45,6 +45,7 @@ ActiveRecord::Schema.define(version: 20161228071511) do
|
|||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "type"
|
||||
t.integer "project_id"
|
||||
end
|
||||
|
||||
add_index "notes", ["user_id"], name: "index_notes_on_user_id"
|
||||
|
|
Loading…
Reference in New Issue