Sha256: 64bc6d574abbf0d7f196067e3c3c36421ea43c2e2d366f4a17573feff1a149eb
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
require "active_record" ActiveRecord::Base.establish_connection( adapter: "sqlite3", database: "spec/test.db" ) ActiveRecord::Base.connection.data_sources.each do |table| ActiveRecord::Base.connection.drop_table(table) end ActiveRecord::Schema.define(version: 1) do create_table :photos do |t| t.string :url t.integer :user_id t.timestamps null: false end create_table :users do |t| t.string :guid t.string :first_name t.string :last_name t.string :email t.integer :account_id t.timestamps null: false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
protobuf-activerecord-7.0.0 | spec/support/db/setup.rb |