Sha256: eed2d81d6e8aef68e869a7b7a8b77217986df4098df81e1a7e3f4b1c3a5314ab
Contents?: true
Size: 449 Bytes
Versions: 9
Compression:
Stored size: 449 Bytes
Contents
require 'spec_helper' describe 'array schema dump' do let!(:connection) { ActiveRecord::Base.connection } it 'correctly generates cidr column statements' do stream = StringIO.new connection.create_table :testings do |t| t.cidr :network_column, :array => true end ActiveRecord::SchemaDumper.dump(connection, stream) output = stream.string output.should match /t\.cidr "network_column".*?:array => true/ end end
Version data entries
9 entries across 9 versions & 1 rubygems