Last active
December 15, 2015 04:59
-
-
Save Viswanathantv/5205667 to your computer and use it in GitHub Desktop.
Vaibhav bank app rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails g scaffold member name:string account_number:integer pan_card:string address:string dob:date mobile:string nominee_one:string nominee_two:string | |
rails g scaffold rd member_id:integer start_date:date amount:decimal period:integer monthly_deposit:integer rate_of_interest:decimal current_amount:decimal | |
rails g scaffold fd member_id:integer start_date:date amount:decimal period:integer rate_of_interest:decimal current_amount:decimal | |
rails g scaffold ctd member_id:integer start_date:date amount:decimal rate_of_interest:decimal current_amount:decimal | |
rails g scaffold loan member_id:integer start_date:date amount:decimal period:integer monthly_emi:integer rate_of_interest:decimal current_amount_returned:decimal | |
rails g scaffold share member_id:integer no_of_share:integer per_share_value:decimal current_share_value:decimal | |
rails g scaffold rd_transaction rd_id:integer member_id:integer amount_deposited:decimal deposit_type:string | |
rails g scaffold ctd_transaction ctd_id:integer member_id:integer amount_deposited:decimal deposit_type:string | |
rails g scaffold loan_transaction loan_id:integer member_id:integer amount_deposited:decimal deposit_type:string | |
rails g scaffold share_transaction share_id:integer member_id:integer amount_deposited:decimal deposit_type:string | |
++++++++++++++++++++++++++++++++++++++++++++ | |
rails g bootstrap:themed name | |
++++++++++++++++++++++++++++++++++++++++++++++ | |
+ Class Member | |
has_many :rd_transactions | |
has_many :rds ,:through => :rd_transactions | |
has_many :fds | |
has_many :ctd_transactions | |
has_many :ctds ,:through => :ctd_transactions | |
has_many :loan_transactions | |
has_many :loans , :through => :loan_transactions | |
has_many :share_transaction | |
has_many :shares , through => :share_transactions | |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
+ Class Rd | |
has_many :rd_transactions | |
has_many :members , :through => :rd_transactions | |
+ Class Fd | |
belongs_to :member | |
+ Class Ctd | |
has_many :ctd_transactions | |
has_many :members , :through => :ctd_transactions | |
+ Class Loan | |
has_many :loan_transactions | |
has_many :members , :through => :loan_transactions | |
+ Class Share | |
has_many :share_transactions | |
has_many :members , :through => :share_transactions | |
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
+ Class Rd_transaction | |
belongs_to :rd | |
belongs_to :member | |
+ Class Ctd_transaction | |
belongs_to :ctd | |
belongs_to :member | |
+ Class Loan_transaction | |
belongs_to :loan | |
belongs_to :member | |
+ Class Share_transaction | |
belongs_to :share | |
belongs_to :member |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment