Sha256: e675a5492f4a9b199f50f1405d2a0c1a0a2d3954394444765a142066abff40bd

Contents?: true

Size: 575 Bytes

Versions: 1

Compression:

Stored size: 575 Bytes

Contents

require "active_record"

ActiveRecord::Base.establish_connection(
  :adapter => "sqlite3",
  :database => "spec/test.db"
)

ActiveRecord::Base.connection.tables.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-3.6.1 spec/support/db/setup.rb