Sha256: 3ea1787115896ba4243b4880670f97841499c099b77010deb0119106c6663026
Contents?: true
Size: 753 Bytes
Versions: 1
Compression:
Stored size: 753 Bytes
Contents
begin ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") rescue ArgumentError ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :dbfile => ":memory:") end ActiveRecord::Base.configurations = true ActiveRecord::Schema.define(:version => 1) do create_table :posts, :force => true do |t| t.string :title t.timestamps end create_table :assets, :force => true do |t| t.string :title t.timestamps end create_table :tags, :force => true do |t| t.string :name t.timestamps end create_table :relationships do |t| t.references :parent, :polymorphic => true t.references :child, :polymorphic => true t.string :context t.timestamps end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts-as-joinable-0.0.1.5 | test/lib/_database.rb |