Sha256: 1671b4dfaaa065987479c8927122be96ba3270be9383f7276749382a05427e29

Contents?: true

Size: 757 Bytes

Versions: 3

Compression:

Stored size: 757 Bytes

Contents

ActiveRecord::Schema.define do
	create_table "tags", :force => true do |t|
	  t.string :name
	  t.timestamps
	end
	
	create_table "items", :force => true do |t|
	  t.string :value
	  t.integer_array :tag_ids,  :default => [1, 2]
	  t.string_array :tag_names, :default => %w{as so}
	end
	
  create_table "bulks", :force => true do |t|
	  t.string :value, :default => "'"
	  t.integer_array :ints,  :default => [1, 2]
	  t.string_array :strings, :default => %w{as so}
	  t.timestamp_array :times,  :default => %w{2010-01-01 2010-02-01}
	  t.float_array :floats,     :default => [1.0, 1.2]
	  t.decimal_array :decimals, :default => [1.0, 1.2]
    t.text_array :texts, :default => [nil, 'Text', 'NULL', 'Text with nil', 'Text with , nil, !"\\', 'nil']
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ar_pg_array-0.9.13 spec/fixtures/schema.rb
ar_pg_array-0.9.12 spec/fixtures/schema.rb
ar_pg_array-0.9.9 spec/fixtures/schema.rb