Sha256: fa6df08935be4a718bfc2cbb0bfce235e447e1e67cc0b81fdf5ff04d17b2e7fb
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
class CreatePictures < ActiveRecord::Migration def self.up create_table :pictures do |t| t.integer :gallery_id t.string :content_type t.string :filename t.integer :parent_id t.integer :size t.integer :width t.integer :height t.integer :position t.string :title t.text :description t.boolean :status t.date :created_at t.date :updated_at t.timestamps end add_index :pictures, :gallery_id add_index :pictures, :filename end def self.down drop_table :pictures end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pictrails-0.5.0 | db/migrate/002_create_pictures.rb |