Sha256: c971e6d61318fea5f4d85ff4f7e12f2dcd817f27f4d74e212e590b4fdc7e07fe

Contents?: true

Size: 556 Bytes

Versions: 4

Compression:

Stored size: 556 Bytes

Contents

class Categories < ActiveRecord::Migration
  def change
    create_table :categories do |t|
      t.references  :category
      t.boolean     :online, :default => false
      t.string      :name
      t.text        :description , :default => ""
      t.text        :summary      , :default => ""
      t.integer     :position , :default => 1
      t.string      :link
      t.attachment  :main_picture
      t.attachment  :extra_picture

      t.timestamps :null => false
    end
    add_index :categories, :link,                :unique => true

  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
post_clerk-0.6 test_app/db/migrate/20141114205527_categories.office.rb
accountant_clerk-0.8 test_app/db/migrate/20141114205527_categories.office.rb
post_clerk-0.5 test_app/db/migrate/20141114205527_categories.office.rb
accountant_clerk-0.7 test_app/db/migrate/20141114205527_categories.office.rb