Sha256: 75aa21f67514b225b93613737fd70e1e094a504c0c4131c81bccd754e4b174e3

Contents?: true

Size: 325 Bytes

Versions: 1

Compression:

Stored size: 325 Bytes

Contents

class CreateCollections < ActiveRecord::Migration[4.2]
  def self.up
    create_table Refinery::PhotoGallery::Collection.table_name do |t|
      t.string :title, :null => false
      t.text :description

      t.timestamps
    end
  end

  def self.down
    drop_table Refinery::PhotoGallery::Collection.table_name
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-photo-gallery-0.3.0 db/migrate/20120805131321_create_collections.rb