Sha256: e1142aabfc9f2836517a77a0fcc9675e01efdef76c9b447929548d4f084a3d64
Contents?: true
Size: 790 Bytes
Versions: 3
Compression:
Stored size: 790 Bytes
Contents
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'rspec' require 'active_record' require 'sqlserver/sequence' require 'activerecord-sqlserver-adapter' require 'tiny_tds' # Requires everything in 'spec/support' Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} ActiveRecord::Base.establish_connection( YAML.load_file("#{File.dirname(__FILE__)}/config.yml")['connection'] ) ActiveRecord::Schema.define do create_table :suppliers, force: true do |t| t.string :number end unless ActiveRecord::Base.connection.adapter_name == 'SQLite' execute <<-INSERTSEQUENCESQL IF NOT EXISTS(SELECT * FROM sys.sequences WHERE name = 'number') CREATE SEQUENCE number START WITH 1 INCREMENT BY 1 INSERTSEQUENCESQL end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sqlserver-sequence-0.2.0 | spec/spec_helper.rb |
sqlserver-sequence-0.1.1 | spec/spec_helper.rb |
sqlserver-sequence-0.0.1 | spec/spec_helper.rb |