Sha256: eb7b1aad27e7a1f1fb986646488d6cde68b2beacdea22c0a66b52f3379f13848

Contents?: true

Size: 416 Bytes

Versions: 16

Compression:

Stored size: 416 Bytes

Contents

class CreatePhotos < ActiveRecord::Migration
  def self.up
    create_table :photos do |t|
      t.string :title
      t.text :desc
      t.date :date_shot
      t.string :location
			t.integer :album_id
			t.string 	:file_file_name
	    t.string 	:file_content_type
	    t.integer :file_file_size
	    t.datetime :file_updated_at
      t.timestamps
    end
  end
  
  def self.down
    drop_table :photos
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
dust-generators-0.2.3 lib/generators/dust/albums/templates/photos_migration.rb
dust-generators-0.2.2 lib/generators/dust/albums/templates/photos_migration.rb
dust-generators-0.2.1 lib/generators/dust/albums/templates/photos_migration.rb
dust-generators-0.2.0 lib/generators/dust/albums/templates/photos_migration.rb
dust-generators-0.1.9 lib/generators/dust/albums/templates/photos_migration.rb
dust-generators-0.1.8 lib/generators/dust/albums/templates/photos_migration.rb
dust-generators-0.1.7 lib/generators/dust/albums/templates/photos_migration.rb
dust-generators-0.1.6 lib/generators/dust/albums/templates/photos_migration.rb
dust-generators-0.1.5 lib/generators/dust/albums/templates/photos_migration.rb
dust-generators-0.1.4 lib/generators/dust/albums/templates/photos_migration.rb
dust-generators-0.1.3 lib/generators/dust/albums/templates/photos_migration.rb
dust-generators-0.1.2 lib/generators/dust/albums/templates/photos_migration.rb
dust-generators-0.1.1 lib/generators/dust/albums/templates/photos_migration.rb
dust-generators-0.1.0 lib/generators/dust/albums/templates/photos_migration.rb
dust-generators-0.0.3 lib/generators/dust/albums/templates/photos_migration.rb
dust_albums-0.0.2 lib/generators/dust_album/templates/photos_migration.rb