Move github source to private server
This commit is contained in:
11
db/migrate/20260128050859_create_comments.rb
Normal file
11
db/migrate/20260128050859_create_comments.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateComments < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :comments do |t|
|
||||
t.text :content
|
||||
t.references :user, foreign_key: true
|
||||
t.references :task, foreign_key: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
12
db/schema.rb
12
db/schema.rb
@@ -10,7 +10,17 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20260122043706) do
|
||||
ActiveRecord::Schema.define(version: 20260128050859) do
|
||||
|
||||
create_table "comments", force: :cascade do |t|
|
||||
t.text "content"
|
||||
t.integer "user_id"
|
||||
t.integer "task_id"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["task_id"], name: "index_comments_on_task_id"
|
||||
t.index ["user_id"], name: "index_comments_on_user_id"
|
||||
end
|
||||
|
||||
create_table "departments", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
|
||||
Reference in New Issue
Block a user