Sha256: a286362ab2bfcf611960663165bf27486ae8137bc3c4cd25b0bf63b791bb3c60

Contents?: true

Size: 463 Bytes

Versions: 21

Compression:

Stored size: 463 Bytes

Contents

require 'spec_helper'

if Rails::VERSION::MAJOR >= 5
  subject = DataMigrate::MigrationFive
else
  subject = DataMigrate::Migration
end

describe subject do
  it "uses correct table name" do
    expect(subject.table_name).to eq("data_migrations")
  end

  it "uses correct index name" do
    expect(subject).to receive(:table_name_prefix) { "" }
    expect(subject).to receive(:table_name_suffix) { "" }
    expect(subject.primary_key).to eq("version")
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
data_migrate-9.0.0 spec/data_migrate/migration.rb
data_migrate-8.5.0 spec/data_migrate/migration.rb
data_migrate-8.4.2 spec/data_migrate/migration.rb
data_migrate-8.4.1 spec/data_migrate/migration.rb
data_migrate-8.4.0 spec/data_migrate/migration.rb
data_migrate-8.3.0 spec/data_migrate/migration.rb
data_migrate-8.2.0 spec/data_migrate/migration.rb
data_migrate-8.1.1 spec/data_migrate/migration.rb
data_migrate-8.1.0 spec/data_migrate/migration.rb
data_migrate-8.0.0 spec/data_migrate/migration.rb
data_migrate-8.0.0.rc2 spec/data_migrate/migration.rb
data_migrate-8.0.0.rc1 spec/data_migrate/migration.rb
data_migrate-7.0.2 spec/data_migrate/migration.rb
data_migrate-7.0.1 spec/data_migrate/migration.rb
data_migrate-7.0.0 spec/data_migrate/migration.rb
data_migrate-6.8.0 spec/data_migrate/migration.rb
data_migrate-6.7.0 spec/data_migrate/migration.rb
data_migrate-6.6.2 spec/data_migrate/migration.rb
data_migrate-6.6.0 spec/data_migrate/migration.rb
data_migrate-6.5.0 spec/data_migrate/migration.rb