Sha256: 9e01cb44b412f42031f646f323817573d13cc9507f145ca9189161d7269cb7f7

Contents?: true

Size: 254 Bytes

Versions: 7

Compression:

Stored size: 254 Bytes

Contents

class CreateCategories < ActiveRecord::Migration
  def change
    create_table :categories do |t|
      t.string :title
      t.string :slug
      
      t.string :category_id # Can have a category as a parent
      
      t.timestamps
    end
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
vinted-crummy-1.11.0 example/db/migrate/20111104103738_create_categories.rb
crummy-schema-dot-org-1.9.0 example/db/migrate/20111104103738_create_categories.rb
vinted-crummy-1.10.0 example/db/migrate/20111104103738_create_categories.rb
vinted-crummy-1.9.0 example/db/migrate/20111104103738_create_categories.rb
crummy-1.8.0 example/db/migrate/20111104103738_create_categories.rb
crummy-1.7.2 example/db/migrate/20111104103738_create_categories.rb
crummy-1.7.1 example/db/migrate/20111104103738_create_categories.rb