Sha256: abcecc0ee9e1f79720e75472a870c5ef06ebb46368a6b239d96f53671e840e5e
Contents?: true
Size: 435 Bytes
Versions: 2
Compression:
Stored size: 435 Bytes
Contents
class CreateAttributes < ActiveRecord::Migration def self.up create_table :attributes do |t| t.boolean :dynamic, :default => false, :null => false t.string :access_method, :type t.belongs_to :element, :polymorphic => true t.timestamps end Attribute.create_translation_table!(:name=>:string) end def self.down Attribute.drop_translation_table! drop_table :attributes end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
forgeos_commerce-1.9.1.rc1 | db/migrate/20091009134448_create_attributes.rb |
forgeos_commerce-1.9.0 | db/migrate/20091009134448_create_attributes.rb |