Sha256: a875177fc33c3635128aca8451cb00145f89ef338ec381d291d092e79847b82e

Contents?: true

Size: 339 Bytes

Versions: 1

Compression:

Stored size: 339 Bytes

Contents

class CreateCategories < ActiveRecord::Migration
  def change
    create_table :categories do |t|
      t.string   "name"
      t.text "parent_ids", :default => "[]"
      t.text "child_ids", :default => "[]"
      t.integer "owner_id"
      t.string "owner_type"
      t.integer "parent_category_id"

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inkwell_timelines-1.0.0 test/dummy/db/migrate/20130422112954_create_categories.rb