Sha256: 1c82bbfdec62eec7c7c08e44ca1c062c7b6b23cb3515b71858211da1ee983028

Contents?: true

Size: 430 Bytes

Versions: 5

Compression:

Stored size: 430 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 :users do |t|
    t.string :first_name
    t.string :last_name
    t.string :email
    t.integer :account_id

    t.timestamps
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
protobuf-activerecord-1.0.5 spec/support/db/setup.rb
protobuf-activerecord-1.0.4 spec/support/db/setup.rb
protobuf-activerecord-1.0.3 spec/support/db/setup.rb
protobuf-activerecord-1.0.2 spec/support/db/setup.rb
protobuf-activerecord-1.0.1 spec/support/db/setup.rb