Sha256: 06e48b48ab3a76d0ba52f5428a25a17c63721a77cd2bf550cae4f7bbf36dc914

Contents?: true

Size: 500 Bytes

Versions: 7

Compression:

Stored size: 500 Bytes

Contents

ActiveRecord::Base.establish_connection(
  :adapter => defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' ? 'jdbcsqlite3' : 'sqlite3',
  :database => File.join(File.dirname(__FILE__), 'test.db')
)

class CreateSchema < ActiveRecord::Migration
  def self.up
    create_table :posts, :force => true do |t|
      t.string :title
      t.text :body
      t.timestamps
    end
  end
end
 
CreateSchema.suppress_messages do
  CreateSchema.migrate(:up)
end

class Post < ActiveRecord::Base
  admin do
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
ds-kitsune-0.2.5 test/schema.rb
ds-kitsune-0.2.3 test/schema.rb
kitsune-0.2.1 test/schema.rb
kitsune-0.2.0 test/schema.rb
kitsune-0.1.5 test/schema.rb
kitsune-0.1.4 test/schema.rb
kitsune-0.1.3 test/schema.rb