Sha256: f37f50764250d19bf752791f587cb5fd7a3e1110edc9ff5e785e0820448cae0c
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
class CreateAlbums < ActiveRecord::Migration[4.2] def self.up create_table Refinery::PhotoGallery::Album.table_name 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::PhotoGallery::Album.table_name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-photo-gallery-0.3.0 | db/migrate/20120804063842_create_albums.rb |