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 |
---|---|---|
name | string | null: false, add_index :users, :name |
user_idenitfier | string | null: false, unique: true |
string | null: false, unique: true |
- has_many :tweets
- has_many :following, through: :active_relationships, source: :followed
- has_many :followers, through: :passive_relationships, source: :followerss
- has_many :favorites
column | type | options |
---|---|---|
follower_id | integer | null: false |
followed_id | integer | null: false, foreign_key: true |
- belongs_to :follower, class_name: "User"
- belongs_to :followed, class_name: "User"
column | type | options |
---|---|---|
user_id | integer | null: false, foreign_key: true |
content | string | ---------- |
- belongs_to :user
- has_many :tags, through: tweet_tag
- has_many :favorites
- has_many :images
- has_many :replies
- has_many :retweets
column | type | options |
---|---|---|
content | string | null: false, unique: true |
- has_many :tweets, through: tweet_tag
column | type | options |
---|---|---|
tweet_id | string | null: false, foreign_key: true |
tag_id | string | null: false, foreign_key: true |
- belongs_to :tweet
- belongs_to :tag
column | type | options |
---|---|---|
user_id | integer | null: false, foreign_key: true |
tweet_id | integer | null: false, foreign_key: true |
- belongs_to :user
- belongs_to :tweet
column | type | options |
---|---|---|
tweet_id | integer | null: false, foreign_key: true |
file | string | null: false |
- belongs_to :tweet
column | type | options |
---|---|---|
tweet_id | integer | null: false, foreign_key: true |
replyed_tweet_id | integer | null: false, foreign_key: true |
- belongs_to :tweet
column | type | options |
---|---|---|
user_id | integer | null: false, foreign_key: true |
tweet_id | integer | null: false, foreign_key: true |
- belongs_to :tweet