Sha256: 4e3311223d2d6b8271c8be4d210e723169b117a721d61410c8e9475109d36e4f

Contents?: true

Size: 541 Bytes

Versions: 4

Compression:

Stored size: 541 Bytes

Contents

ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: File.expand_path("#{__dir__}/../../test.sqlite3"), timeout: 5000)

ActiveRecord::Base.connection.create_table(:comments, force: true) do |t|
  t.integer :orphan_from_id
  t.datetime :post_updated_at
  t.integer :post_id
  t.string :post_title
  t.timestamps
end
ActiveRecord::Base.connection.create_table(:posts, force: true) do |t|
  t.text :body
  t.integer :comments_count, default: 0
  t.datetime :last_comment_at
  t.text :texts
  t.string :title
  t.timestamps
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
association_callbacks-0.2.4 spec/support/bootsrap/database.rb
association_callbacks-0.2.3 spec/support/bootsrap/database.rb
association_callbacks-0.2.2 spec/support/bootsrap/database.rb
association_callbacks-0.2.1 spec/support/bootsrap/database.rb