define controllers

This commit is contained in:
HuJiaxuan 2016-12-27 11:11:44 +00:00
parent ffa2fb56e1
commit 1b15e08a97
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
class AddTypeToNotes < ActiveRecord::Migration
def change
add_column :notes, :type, :integer
end
end

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20161226023254) do
ActiveRecord::Schema.define(version: 20161227104629) do
create_table "comments", force: :cascade do |t|
t.text "content"
@ -42,6 +42,7 @@ ActiveRecord::Schema.define(version: 20161226023254) do
t.integer "user_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "type"
end
add_index "notes", ["user_id"], name: "index_notes_on_user_id"