Added password field to Group model
• Added: - password field to Group model
This commit is contained in:
parent
baee8d1141
commit
cc224d7659
@ -21,6 +21,7 @@
|
|||||||
# is_visible :boolean default(FALSE)
|
# is_visible :boolean default(FALSE)
|
||||||
# tags :string default([]), is an Array
|
# tags :string default([]), is an Array
|
||||||
# group_categories_id :bigint(8)
|
# group_categories_id :bigint(8)
|
||||||
|
# password :string
|
||||||
#
|
#
|
||||||
|
|
||||||
class Group < ApplicationRecord
|
class Group < ApplicationRecord
|
||||||
|
5
db/migrate/20200901165533_add_password_to_groups.rb
Normal file
5
db/migrate/20200901165533_add_password_to_groups.rb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
class AddPasswordToGroups < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
add_column :groups, :password, :string
|
||||||
|
end
|
||||||
|
end
|
@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "pg_stat_statements"
|
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.boolean "is_visible", default: false
|
||||||
t.string "tags", default: [], array: true
|
t.string "tags", default: [], array: true
|
||||||
t.bigint "group_categories_id"
|
t.bigint "group_categories_id"
|
||||||
|
t.string "password"
|
||||||
t.index ["account_id"], name: "index_groups_on_account_id"
|
t.index ["account_id"], name: "index_groups_on_account_id"
|
||||||
t.index ["group_categories_id"], name: "index_groups_on_group_categories_id"
|
t.index ["group_categories_id"], name: "index_groups_on_group_categories_id"
|
||||||
t.index ["slug"], name: "index_groups_on_slug", unique: true
|
t.index ["slug"], name: "index_groups_on_slug", unique: true
|
||||||
|
Loading…
Reference in New Issue
Block a user