Sha256: 8ff73681d018b320069f5754912da40b8353eb5ea1aa2be119fcca0a6e9fa1e9
Contents?: true
Size: 602 Bytes
Versions: 10
Compression:
Stored size: 602 Bytes
Contents
class CreatePhotos < ActiveRecord::Migration def self.up create_table :photos do |t| t.column "name", :string t.column "description", :text t.column "created_at", :datetime t.column "updated_at", :datetime t.column "user_id", :integer t.column "content_type", :string t.column "filename", :string t.column "size", :integer t.column "parent_id", :integer t.column "thumbnail", :string t.column "width", :integer t.column "height", :integer end end def self.down drop_table :photos end end
Version data entries
10 entries across 10 versions & 1 rubygems