Sha256: a0bc9d3d6e61ca4a42ec76eca3ce73e0830c7844fe4c9bf218129d0e6ef5b214

Contents?: true

Size: 604 Bytes

Versions: 1

Compression:

Stored size: 604 Bytes

Contents

# This migration comes from spree_category_bullets (originally 20120424085004)
class CreateCategoryBullets < ActiveRecord::Migration
  def self.up
    create_table :spree_bullets do |t|
      t.references :taxon
      t.integer :image_code
      t.text :description
      t.integer :line_number
      t.integer :is_active

      t.timestamps
    end
    
    add_index :spree_bullets_taxons, [:taxon_id], :name => 'index_bullets_taxon'
    add_index :spree_bullets_taxons, [:taxon_id, :image_code], :name => 'index_bullets_taxon_image_code'
  end

  def self.down
    drop_table :spree_bullets
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_category_bullets-0.0.1 db/migrate/20120424085004_create_category_bullets.rb