Sha256: dc654f8939a08f50de6cd1b643f8dd64a7f45f02e3b657790ee152ccfb724b1a
Contents?: true
Size: 586 Bytes
Versions: 2
Compression:
Stored size: 586 Bytes
Contents
# frozen_string_literal: true VersionedMigration = ActiveRecord::Migration[ActiveRecord::Migration.current_version] # rubocop:disable Metrics/LineLength class TestSetupMigration < VersionedMigration def up db_connection = ActiveRecord::Base.connection return if db_connection.try(:data_source_exists?, :test_classes) create_table :test_classes do |t| t.string :field end create_table :association_test_classes do |t| t.integer :test_class_id end end def down drop_table :test_classes drop_table :association_test_classes end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
order_as_specified-1.5 | spec/config/test_setup_migration.rb |
order_as_specified-1.4 | spec/config/test_setup_migration.rb |