This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...
Column | Type | Options |
---|---|---|
nickname | string | null: false |
string | null: false defalt | |
encrypted_password | string | null: false defalt |
family_name | string | null: false |
first_name | string | null: false |
family_name_kana | string | null: false |
first_name_kana | string | null: false |
birth_day | date | null: false |
reset_password_token | string | |
reset_password_sent_at | datetime |
- has_many :comments, dependent: :destroy
- has_many :items, dependent: :destroy
- has_many :likes
- has_many :user_rates
- has_one :profile, dependent: :destroy
- has_one :credit_card, dependent: :destroy
Column | Type | Options |
---|---|---|
post_code | string | null: false |
tel_number | string | |
prefecture_id | integer | null: false |
city | string | null: false |
address | string | null: false |
building | string | |
image | string | |
user_id | reference | null: false |
introduce | text |
- belongs_to :user
Column | Type | Options |
---|---|---|
user_id | integer | null: false |
custumer_id | string | null: false |
card_id | string | null: false |
- belongs_to :user
Column | Type | Options |
---|---|---|
user_id | reference | null: false fk true |
item_id | reference | null: false fk true |
rate | string | null: false |
- belongs_to :user
- belongs_to :item
Column | Type | Options |
---|---|---|
name | string | null: false |
price | integer | null: false |
status | integer | null: false |
brand | string | |
buyer_id | reference | fk true |
delivery_fee | integer | null: false |
category_id | reference | null: false |
user_id | reference | null: false |
size_id | reference | fk true |
delivery_method | integer | null: false |
delivery_from_location | integer | null: false |
item_explanation | text | null: false |
preparation_day | integer | null: false |
- has_many :comments, dependent: :destroy
- has_many :likes
- has_many :item_images, dependent: :destroy
- has_many :user_rates
- belongs_to :user
- belongs_to :category
- belongs_to :size
- belongs_to :buyer, class_name: "User"
- belongs_to_active_hash :item_status
- belongs_to_active_hash :item_delivery_fee
- belongs_to_active_hash :item_delivery_method
- belongs_to_active_hash :item_prefecture
- belongs_to_active_hash :item_preparation_day
Column | Type | Options |
---|---|---|
user_id | reference | null: false |
item_id | reference | null: false |
- belongs_to :user
- belongs_to :item
Column | Type | Options |
---|---|---|
content | text | null: false |
user_id | reference | null: false |
item_id | reference | null: false |
- belongs_to :user
- belongs_to :item
Column | Type | Options |
---|---|---|
name | string | null: false |
ancestry | string |
- has_many :items
Column | Type | Options |
---|---|---|
image | string | null: false |
item_id | reference | null: false |
- belongs_to :item
Column | Type | Options |
---|---|---|
size | string | null: false |
- has_many :items