Sha256: 93a74f44022b9cd47e7536f053e4412eccfc298bb38c35146f54d9156ce13d19
Contents?: true
Size: 868 Bytes
Versions: 1
Compression:
Stored size: 868 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 :pages, :force => true do |t| t.string :title t.timestamps end create_table :relationships do |t| t.references :parent, :polymorphic => true t.references :child, :polymorphic => true t.string :context t.integer :position t.timestamps end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts-as-joinable-0.0.1.7 | test/database.rb |