add homie to the gang when homie is created

This commit is contained in:
Bilal
2020-10-07 22:47:19 +03:00
parent 8d7716f2e0
commit 8832ba071b
9 changed files with 43 additions and 5 deletions

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2020_10_07_180902) do
ActiveRecord::Schema.define(version: 2020_10_07_213411) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -43,6 +43,7 @@ ActiveRecord::Schema.define(version: 2020_10_07_180902) do
t.integer "chip_scale"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.text "name"
end
create_table "homies", force: :cascade do |t|
@@ -51,6 +52,8 @@ ActiveRecord::Schema.define(version: 2020_10_07_180902) do
t.text "about"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.bigint "gang_id"
t.index ["gang_id"], name: "index_homies_on_gang_id"
end
create_table "money_moves", force: :cascade do |t|