1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00
thoughtbot--factory_bot/features/support/factories.rb
2012-08-02 11:17:39 -04:00

16 lines
384 B
Ruby

ActiveRecord::Base.establish_connection(
:adapter => 'sqlite3',
:database => File.join(File.dirname(__FILE__), 'test.db')
)
class CreateSchema < ActiveRecord::Migration
def self.up
create_table :categories, :force => true do |t|
t.string :name
end
end
end
CreateSchema.suppress_messages { CreateSchema.migrate(:up) }
class Category < ActiveRecord::Base; end