Scaffold

language: Ruby on Rails
license: Other

Code for Snippet:

                
rails generate scaffold assessment name:string enabled:boolean After_assessment:boolean selected_date:boolean from_date:date to_date:date show_After_assessment:integer ordinal?number:integer created_by:integer updated_by:integer
 
rails g scaffold assessment_type name:string enabled:boolean note:text ordinal?number:integer created_by:integer updated_by:integer assessment:belongs_to
 
rails g migration add_type_mark_to_assessment_type type_mark:integer
 
rails g migration add_picture_to_assessment_type picture:attachment
 
rails g scaffold assessment_section name:string enabled:boolean note:text ordinal?number:integer created_by:integer updated_by:integer assessment_type:belongs_to
 
rails g scaffold question question:text type:string urgent:boolean start_mark:integer end_mark:integer notfication_mark:integer enabled:boolean ordinal?number:integer created_by:integer updated_by:integer assessment_section:belongs_to
 
rails g model question_mark user_id:integer assessment_id:integer assessment_type:integer assessment_section:integer question_id:integer mark:float
 
rails g migration add_restinfo_mark_to_assessment group:boolean user:boolean public:boolean user_id:integer group_id:integer
 
rails g model user_friends user1_id:integer user2_id:integer approved1:boolean approved2:boolean 
 
rails g model group name:string description:text picture:attachment enabled:boolean approved:boolean private:boolean created_by:integer
 
rails g model group_users group_id:integer user_id:integer invite:boolean accepted:boolean blocked:boolean
 
rails g model group_post  group_id:integer user_id:integer post:text attachments:attachment
 
rails g model group_post_comment group_post_id:integer user_id:integer attachments:attachment
 
rails g model group_post_like group_post_id:integer user_id:integer
 
comments powered by Disqus

Info

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 5
Date Added: 2017-06-26 22:59:21
Last Modified: 2017-07-22 02:07:04

Web Analytics