Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails generate model

rails generate model Article title:string body:text


[Output]

invoke  active_record
create    db/migrate/<timestamp>_create_articles.rb
create    app/models/article.rb
invoke    test_unit
create      test/models/article_test.rb
create      test/fixtures/articles.yml
Source by guides.rubyonrails.org #
 
PREVIOUS NEXT
Tagged: #rails #generate #model
ADD COMMENT
Topic
Name
4+9 =