Sha256: f2e9e54e5d375b3f0172e33ce18af409b0a7a927da6cdca2ded317c71baaa672

Contents?: true

Size: 999 Bytes

Versions: 24

Compression:

Stored size: 999 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 :groups, :force => true do |t|
    t.string :title
    t.string :type
    t.timestamps
  end
  
  create_table :relationships do |t|
    t.references :parent, :polymorphic => true
    t.references :child, :polymorphic => true
    t.string :context
    t.string :value
    t.integer :position
    t.timestamps
  end
  
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
acts-as-joinable-0.2.6 test/database.rb
acts-as-joinable-0.2.3 test/database.rb
acts-as-joinable-0.2.2 test/database.rb
acts-as-joinable-0.2 test/database.rb
acts-as-joinable-0.1.7.8 test/database.rb
acts-as-joinable-0.1.7.7 test/database.rb
acts-as-joinable-0.1.7.6 test/database.rb
acts-as-joinable-0.1.7.5 test/database.rb
acts-as-joinable-0.1.7.4 test/database.rb
acts-as-joinable-0.1.7.3 test/database.rb
acts-as-joinable-0.1.7.2 test/database.rb
acts-as-joinable-0.1.7 test/database.rb
acts-as-joinable-0.1.6.8 test/database.rb
acts-as-joinable-0.1.6.5 test/database.rb
acts-as-joinable-0.1.6.3 test/database.rb
acts-as-joinable-0.1.6.2 test/database.rb
acts-as-joinable-0.1.6.1 test/database.rb
acts-as-joinable-0.1.6 test/database.rb
acts-as-joinable-0.1.5 test/database.rb
acts-as-joinable-0.1.4 test/database.rb