Sha256: 4c067ad9518f088d5a99a58ed0f1439fed7c6d4fc5a3f29025679fa8dde69587

Contents?: true

Size: 569 Bytes

Versions: 5

Compression:

Stored size: 569 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

5 entries across 5 versions & 1 rubygems

Version Path
protobuf-activerecord-3.6.0 spec/support/db/setup.rb
protobuf-activerecord-3.5.1 spec/support/db/setup.rb
protobuf-activerecord-3.5.0 spec/support/db/setup.rb
protobuf-activerecord-3.4.4 spec/support/db/setup.rb
protobuf-activerecord-3.4.4.pre spec/support/db/setup.rb