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