Added password field to Group model

• Added:
- password field to Group model
This commit is contained in:
mgabdev 2020-09-02 17:56:16 -05:00
parent baee8d1141
commit cc224d7659
3 changed files with 8 additions and 1 deletions

View File

@ -21,6 +21,7 @@
# is_visible :boolean default(FALSE)
# tags :string default([]), is an Array
# group_categories_id :bigint(8)
# password :string
#
class Group < ApplicationRecord

View File

@ -0,0 +1,5 @@
class AddPasswordToGroups < ActiveRecord::Migration[5.2]
def change
add_column :groups, :password, :string
end
end

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_08_08_170708) do
ActiveRecord::Schema.define(version: 2020_09_01_165533) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
@ -392,6 +392,7 @@ ActiveRecord::Schema.define(version: 2020_08_08_170708) do
t.boolean "is_visible", default: false
t.string "tags", default: [], array: true
t.bigint "group_categories_id"
t.string "password"
t.index ["account_id"], name: "index_groups_on_account_id"
t.index ["group_categories_id"], name: "index_groups_on_group_categories_id"
t.index ["slug"], name: "index_groups_on_slug", unique: true