Skip to content
No description, website, or topics provided.
Ruby HTML CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
spec
test
tmp
vendor/assets
.gitignore
.rspec
Capfile
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

DB設計

1.usersテーブル

Column Type Options
id integer null: false, unique: true
name string null: false, unique: true
e-mail string null: false, unique: true

Association

  • has_many :messages
  • has_many :mambers

2.messagesテーブル

Column Type Options
id integer null: false, unique: true
body text null: false
image string
user_id integer null: false, foreign_key: true
group_id integer null: false, foreign_key: true

Association

  • belongs_to :user
  • belongs_to :group

3.groupsテーブル

Column Type Options
id integer null: false, unique: true
name string null: false, foreign_key: true

Association

  • has_many :messages
  • has_many :mambers

4.membersテーブル

Column Type Options
id integer null: false, unique: true
user_id integer null: false, foreign_key: true
group_id integer null: false, foreign_key: true

Association

  • belongs_to :group
  • belongs_to :user
You can’t perform that action at this time.