Sha256: 943567ef30ab2ad73c13af2086df0976426dbbad70486fc6f265b5df4ddceef5

Contents?: true

Size: 266 Bytes

Versions: 3

Compression:

Stored size: 266 Bytes

Contents

class CreateBookkeeperCategories < ActiveRecord::Migration
  def change
    create_table :bookkeeper_categories do |t|
      t.references :categorizable, polymorphic: true, nil: false
      t.string :name, uniq: true, nil: false
      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bookkeeper-0.0.7 db/migrate/20130308231918_create_bookkeeper_categories.rb
bookkeeper-0.0.6 db/migrate/20130308231918_create_bookkeeper_categories.rb
bookkeeper-0.0.5 db/migrate/20130308231918_create_bookkeeper_categories.rb