Open bachpx195 opened 5 years ago
database V1: https://to.ly/1zhzj
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
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
rails generate scaffold SystemConfig key:string value:float value_type:integer
easily generate a diagram based on your application's Active Record models. https://github.com/voormedia/rails-erd
bundle exec erd
rails generate model PlanMerchandiseRate merchandise_rate:references plan:references
Tạo thiết kế database cùng các ý tưởng cho dự án