Sha256: 026896a5c8daccca7054b926870b4878f56e2fc3b824dcd441a77cdca5465e44

Contents?: true

Size: 421 Bytes

Versions: 3

Compression:

Stored size: 421 Bytes

Contents

class CreateSpudBanners < ActiveRecord::Migration
  def change
    create_table :spud_banners do |t|
      t.integer :spud_banner_set_id, :null => false
      t.string :link_to
      t.string :link_target
      t.string :title
      t.string :alt
      t.integer :sort_order, :default => 0
      t.attachment :banner
      t.timestamps
    end
    add_index :spud_banners, :spud_banner_set_id, :unique => false
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spud_banners-0.9.0.1 db/migrate/20121116195139_create_spud_banners.rb
spud_banners-0.9.0 db/migrate/20121116195139_create_spud_banners.rb
spud_banners-0.0.1 db/migrate/20121116195139_create_spud_banners.rb