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