Sha256: 38956a05143e4ef74c8e1b37bed25a968e81698c7205bcbec9c58b2cfc54d58c
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
class CreatePhotos < ActiveRecord::Migration[4.2] def self.up create_table Refinery::PhotoGallery::Photo.table_name do |t| t.string :title, :length => 250, :null => false t.text :description t.string :path, :length => 100, :null=> true t.decimal :longitude, :precision => 15, :scale => 10 t.decimal :latitude, :precision => 15, :scale => 10 t.string :file t.references :album t.timestamps end end def self.down drop_table Refinery::PhotoGallery::Photo.table_name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-photo-gallery-0.3.0 | db/migrate/20120805165238_create_photos.rb |