Sha256: 9b972d78fd45269d5c270a85da6fc2a7d674e1ddd04ef88c234db9b2feedf2c9

Contents?: true

Size: 844 Bytes

Versions: 1

Compression:

Stored size: 844 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.timestamps
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts-as-joinable-0.0.1.6 test/database.rb