Sha256: 4b4269a7470f81b229ab35a82825aac69f952685ac3952bf240feb1699841126

Contents?: true

Size: 433 Bytes

Versions: 8

Compression:

Stored size: 433 Bytes

Contents

ActiveRecord::Schema.define do
  execute "DROP TABLE fk_test_has_fk" rescue nil
  execute "DROP TABLE fk_test_has_pk" rescue nil
  execute <<_SQL
  CREATE TABLE 'fk_test_has_pk' (
    'pk_id' INTEGER NOT NULL PRIMARY KEY
  );
_SQL

  execute <<_SQL
  CREATE TABLE 'fk_test_has_fk' (
    'id'    INTEGER NOT NULL PRIMARY KEY,
    'fk_id' INTEGER NOT NULL,

    FOREIGN KEY ('fk_id') REFERENCES 'fk_test_has_pk'('pk_id')
  );
_SQL
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ibm_db-5.2.0 test/schema/sqlite_specific_schema.rb
ibm_db-5.1.0 test/schema/sqlite_specific_schema.rb
ibm_db-5.0.5 test/schema/sqlite_specific_schema.rb
ibm_db-5.0.4 test/schema/sqlite_specific_schema.rb
ibm_db-5.0.3 test/schema/sqlite_specific_schema.rb
ibm_db-5.0.2 test/schema/sqlite_specific_schema.rb
ibm_db-4.0.0-x86-mingw32 test/schema/sqlite_specific_schema.rb
ibm_db-4.0.0 test/schema/sqlite_specific_schema.rb