class CreateFeaturedContentImages
Public Instance Methods
change()
click to toggle source
# File lib/generators/templates/create_featured_content_images_migration.rb, line 2 def change create_table :featured_content_images do |t| t.string :image t.references :featured_content, index: true, foreign_key: true t.timestamps null: false end end