migrationã®è¨è¿°ã®ä»æ¹ãå¤ãã£ã¦ã(sexy migration) â ãããªæã 20080727003719_create_categories.rb create_table :categories do |t| t.string :name t.string :image_url t.text :description t.timestamps end 20080727003748_create_products.rb create_table :products do |t| t.references :category t.string :name t.string :image_url t.text :description t.timestamps end åè) http://api.rubyonrails.org/classes/ActiveRecord/Mig
{{#tags}}- {{label}}
{{/tags}}