Sha256: bddd8ce8ec1e68c6089deed0778d635140878109655f8b91e9bdc806b43b3495
Contents?: true
Size: 533 Bytes
Versions: 3
Compression:
Stored size: 533 Bytes
Contents
require 'active_record' ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") ActiveRecord::Schema.define do create_table :accounts, :force => true do |t| t.column :id, :integer t.column :name, :string t.column :role, :string t.column :crypted_password, :string t.column :salt, :string t.column :email, :string end end class Account < ActiveRecord::Base; end Padrino::Admin::Adapters.register(:activerecord)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
padrino-admin-0.6.3 | test/fixtures/active_record.rb |
padrino-admin-0.6.2 | test/fixtures/active_record.rb |
padrino-admin-0.6.1 | test/fixtures/active_record.rb |