Sha256: e12dd9d2e36dbc37bd57394b34f50fdf8095263e2bb3e6631de52ade9f3d5be8
Contents?: true
Size: 531 Bytes
Versions: 8
Compression:
Stored size: 531 Bytes
Contents
ActiveRecord::Schema.define do create_table :table_with_autoincrement, :force => true do |t| t.column :name, :string end 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