Sha256: a9bd89dda49bc772a876f9713e8768277709c33b9e371d30687cf2e38210e5da

Contents?: true

Size: 427 Bytes

Versions: 2

Compression:

Stored size: 427 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 :people do |t|
    t.string :first_name
    t.string :last_name

    t.timestamps
  end
end

class Person < ::ActiveRecord::Base

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
traxis-0.0.2 spec/support/db.rb
traxis-0.0.1 spec/support/db.rb