Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thiết kế database #1

Open
bachpx195 opened this issue May 14, 2019 · 8 comments
Open

Thiết kế database #1

bachpx195 opened this issue May 14, 2019 · 8 comments
Labels
good first issue Good for newcomers

Comments

@bachpx195
Copy link
Owner

bachpx195 commented May 14, 2019

Tạo thiết kế database cùng các ý tưởng cho dự án

@bachpx195
Copy link
Owner Author

database V1: https://to.ly/1zhzj
V1_ Following Coin

@bachpx195
Copy link
Owner Author

bachpx195 commented May 23, 2019

Migrate:
rails generate model CoinCategory name:string description:text
rails generate model Coin slug:string title:string description:text code:string rank:integer meta_title:string market_cap_usd:float price_usd:float coin_category:references
rails generate model CoinSource title:string domain_slug:string website:string coin:references
rails generate model New url:string domain:string
rails generate model NewCategory name:string description:text
rails generate model New url:string domain:string short_description:text tilte:string published_at:date status:integer intended_date:date new_category:references
rails generate model Tag name:string description:text
rails generate model NewsTag new:references tag:references
rails generate model NewSite domanin:string description:text
rails generate model DailyReport date:date coin:references new:references result
rails g model comment content:text commentable_id:integer:index commentable_type:index

@bachpx195 bachpx195 added the good first issue Good for newcomers label May 23, 2019
@bachpx195 bachpx195 reopened this May 29, 2019
@bachpx195
Copy link
Owner Author

V1_ Following Coin (1)

@bachpx195
Copy link
Owner Author

V1_ Following Coin

@bachpx195
Copy link
Owner Author

rails generate scaffold Fund initial_capital:float present_value:float future_value:float desposit:float withdraw:float rate_of_growth:float
rails generate scaffold TradeMethod name:string win_rate:float rule:text

@bachpx195
Copy link
Owner Author

bachpx195 commented Nov 17, 2020

rails generate scaffold SystemConfig key:string value:float value_type:integer

@bachpx195
Copy link
Owner Author

easily generate a diagram based on your application's Active Record models.
https://github.com/voormedia/rails-erd

bundle exec erd

@bachpx195
Copy link
Owner Author

rails generate model PlanMerchandiseRate merchandise_rate:references plan:references

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant