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
Daniel Colson 5f1a1de114 Run standardrb
This commit applies the changes from running `standardrb --fix`
2020-06-10 17:11:39 -04:00

16 lines
345 B
Ruby

ActiveRecord::Base.establish_connection(
adapter: "sqlite3",
database: ":memory:"
)
class CreateSchema < ActiveRecord::Migration[5.0]
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