Sha256: f1e21a507822b588e505639f6f9cc1e406318780881a77e0b867eb81ab1dd5f0

Contents?: true

Size: 461 Bytes

Versions: 5

Compression:

Stored size: 461 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

5 entries across 5 versions & 1 rubygems

Version Path
spree_zaez_banner-3.0.4 db/migrate/20120116204313_create_banners.rb
spree_zaez_banner-3.0.3 db/migrate/20120116204313_create_banners.rb
spree_zaez_banner-3.0.2 db/migrate/20120116204313_create_banners.rb
spree_zaez_banner-3.0.1 db/migrate/20120116204313_create_banners.rb
spree_zaez_banner-3.0.0 db/migrate/20120116204313_create_banners.rb