Sha256: 1452742035c0ba6db20491301a4d304843dd7364ee70cb5d4e700df9bb8acab7

Contents?: true

Size: 543 Bytes

Versions: 8

Compression:

Stored size: 543 Bytes

Contents

class CreateAlbums < ActiveRecord::Migration
  def self.up
    create_table "refinery_photo_gallery_albums" do |t|
      t.string :title, :length => 250, :null => false
      t.text :description
      t.string :path, :length => 100, :null=> true
      t.string :address, :length => 200, :null=> true
      t.decimal :longitude, :precision => 15, :scale => 10
      t.decimal :latitude, :precision => 15, :scale => 10
      t.text :note
      t.timestamps
    end
  end

  def self.down
    drop_table "refinery_photo_gallery_albums"
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
refinerycms-photo-gallery-0.2.0 db/migrate/20120804063842_create_albums.rb
refinerycms-photo-gallery-0.1.2 db/migrate/20120804063842_create_albums.rb
refinerycms-photo-gallery-0.1.1 db/migrate/20120804063842_create_albums.rb
refinerycms-photo-gallery-0.1.0 db/migrate/20120804063842_create_albums.rb
refinerycms-6hoursdaily-photo-gallery-0.0.5.dev db/migrate/20120804063842_create_albums.rb
refinerycms-6hoursdaily-photo-gallery-0.0.4.dev db/migrate/20120804063842_create_albums.rb
refinerycms-photo-gallery-0.0.2.dev db/migrate/20120804063842_create_albums.rb
refinerycms-photo-gallery-0.0.1.dev db/migrate/20120804063842_create_albums.rb