mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
12 lines
256 B
Ruby
12 lines
256 B
Ruby
require 'activerecord'
|
|
|
|
ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :dbfile => ":memory:")
|
|
|
|
ActiveRecord::Schema.define(:version => 1) do
|
|
create_table :widgets do |t|
|
|
t.string :name
|
|
end
|
|
end
|
|
|
|
class Widget < ActiveRecord::Base
|
|
end
|