Sha256: 9108aa1782436cbe2c87904924046c1c5c1c2a8a926e282c60a0fe7a7e66b635

Contents?: true

Size: 907 Bytes

Versions: 18

Compression:

Stored size: 907 Bytes

Contents

ActiveRecord::Schema.define :version => 0 do
  create_table :custom_attributes, :force => true do |t|
		# label
    t.string :field_name
    t.string :field_label

    # value type
    t.string :value_type
		
		# fields for value storage
    t.string :text_value
    t.datetime :date_time_value
    t.integer :number_value
    t.float :float_value

		# sorting
    t.integer :position
		# link to object
    t.references :item, :polymorphic => true

    t.timestamps
  end

  add_index :custom_attributes, :value_type
  add_index :custom_attributes, [:item_id, :item_type]

  create_table "people", :force => true do |t|
    t.string :name
    t.date :born_on
    t.string :email
  end

  create_table "products", :force => true do |t|
    t.string :name
    t.float :width
    t.float :height
    t.string :details_url
  end

  create_table "locations", :force => true do |t|
    t.string :name
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
custom-attributes-0.2.27 spec/schema.rb
custom-attributes-0.2.26 spec/schema.rb
custom-attributes-0.2.25 spec/schema.rb
custom-attributes-0.2.24 spec/schema.rb
custom-attributes-0.2.23 spec/schema.rb
custom-attributes-0.2.22 spec/schema.rb
custom-attributes-0.2.18 spec/schema.rb
custom-attributes-0.2.17 spec/schema.rb
custom-attributes-0.2.16 spec/schema.rb
custom-attributes-0.2.15 spec/schema.rb
custom-attributes-0.2.12 spec/schema.rb
custom-attributes-0.2.5 spec/schema.rb
custom-attributes-0.2.4 spec/schema.rb
custom-attributes-0.2.3 spec/schema.rb
custom-attributes-0.2.2 spec/schema.rb
custom-attributes-0.2.1 spec/schema.rb
custom-attributes-0.2.0 spec/schema.rb
custom-attributes-0.1.2 spec/schema.rb