Sha256: e6b0d129cf6506ead451bea48a90a945ec19ece3b0a2282c33adf7055e4ccfc9
Contents?: true
Size: 456 Bytes
Versions: 4
Compression:
Stored size: 456 Bytes
Contents
class CreateBlogImages < ActiveRecord::Migration def self.up create_table :blog_images, :force => true do |t| t.string :image_file_name t.string :image_content_type t.integer :image_file_size t.datetime :image_updated_at t.integer :blog_post_id t.timestamps end add_index :blog_images, :blog_post_id end def self.down remove_index :blog_images, :blog_post_id drop_table :blog_images end end
Version data entries
4 entries across 4 versions & 1 rubygems