Sha256: c9a83633dc2257781d60298954c5f7e0b1be7fb8d7e8d84c9b734153867cee99
Contents?: true
Size: 408 Bytes
Versions: 8
Compression:
Stored size: 408 Bytes
Contents
require 'enumify' require 'active_record' def set_database db_config = {:adapter => "sqlite3", :database => ":memory:"} ActiveRecord::Base.establish_connection(db_config) connection = ActiveRecord::Base.connection connection.create_table :models do |t| t.string :status end connection.create_table :other_models do |t| t.string :status t.references :model end end set_database
Version data entries
8 entries across 8 versions & 1 rubygems