Sha256: 3ff90b08bb104b103c635a73937b703d486f12a4fbfce40ecf3f862134a50ad4

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 Bytes

Contents

class CreateBanners < ActiveRecord::Migration
  def change
    create_table :banners do |t|
      t.string :presentation, :url
      t.string :category
      t.integer :position
      t.boolean :enabled, :default => false
      
      t.string   :attachment_content_type, :attachment_file_name
      t.datetime :attachment_updated_at
      t.integer  :attachment_width, :attachment_height
      t.integer  :attachment_size
      
      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_banner-1.3.0 db/migrate/20120116204313_create_banners.rb